I have a method to see if a name is already used or not.
To do this I make a query to the api, and if the name is empty it means that the name can be used.
It\