This can never fail if a component (etc.) is added right after it is created (which right now it is). Creating them checks to make sure the name is unique. but it's not added to the unique tracker until here.
I can add a console log message as you suggested, but I don't think anything else would ever be needed or helpful.