Check if name is used already before renaming