code: def hasField(cls, fieldName) :
          
          path = fieldName.split(".")
          v = cls._fields
          for k in path :
              try :
                  v = v[k]
              except KeyError :
                  return False
          return True
docs: returns True/False wether the collection has field K in it's schema. Use the dot notation for the nested fields: address.street