original_string: public function isDirty($property = null)
      {
          if ($property === null) {
              return !empty($this->_dirty);
          }
  
          return isset($this->_dirty[$property]);
      }
code: public function isDirty($property = null)
      {
          if ($property === null) {
              return !empty($this->_dirty);
          }
  
          return isset($this->_dirty[$property]);
      }
code_tokens: public function isDirty ( $ property = null ) { if ( $ property === null ) { return ! empty ( $ this -> _dirty ) ; } return isset ( $ this -> _dirty [ $ property ] ) ; }
docstring: Checks if the entity is dirty or if a single property of it is dirty.
  
  @param string|null $property The field to check the status for. Null for the whole entity.
  @return bool Whether the property was changed or not
docstring_tokens: Checks if the entity is dirty or if a single property of it is dirty .