Check if a name is free.