Check if the new name is already in use.