code: protected function dataHas($key): bool
      {
          if (!isset($this->document->data)) {
              return false;
          }
  
          return property_exists($this->document->data, $key);
      }
docs: Does the key exist in document data object?
  
  @param $key
  @return bool