def has_attribute?(attr_name)
      attr_name = attr_name.to_s
      attr_name = self.class.attribute_aliases[attr_name] || attr_name
      attribute_types.key?(attr_name)
    end
Checks if the attribute with a given name is defined

@example
class Person
include StoreModel::Model
attribute :name, :string
alias_attribute :new_name, :name
end

Person.has_attribute?('name')     # => true
Person.has_attribute?('new_name') # => true
Person.has_attribute?(:age)       # => true
Person.has_attribute?(:nothing)   # => false

@param attr_name [String] name of the attribute

@return [Boolean]
rubocop:disable Naming/PredicateName