code: def __check_field(self, key):
          
          if not self._props.get(key):
              raise KeyError(
                  'The field "%s" does not exist on "%s"' % (
                      key, self.__class__.__name__,
                  ),
              )
docs: Raises a KeyError if the field doesn't exist.