Any object could not have the attribute, but I want to send a specific error-message.

When you propose an alternative implementation idea, could you always give a reason for it?