code: def has_attribute(self, name, alias=False):
          
          prop_dict = merge_dicts(self.__attributes__,
                                  self.__fields__,
                                  self.__relations__)
          if alias:
              prop_dict.update({v.alias : v for v in prop_dict.values() if v.alias is not None})
          
          return name in prop_dict
docs: Check if the entity contains the attribute *name*