hasattr_safe
