How to check for unique names to ensure there are no duplicates? Which function should I call?
Your best bet is to handle the error upon submitting an error, which will return a callback responding with a descriptive error message.