Return whether the object has an attribute with the given name. This is done by calling getattr(obj, name) and catching AttributeError.
builtins/hasattr
hasattr