public function hasDefinition($identifier)
    {
        return isset($this->definitions[$identifier]) || isset($this->mongoIndex[$identifier]);
    }
public function hasDefinition($identifier)
    {
        return isset($this->definitions[$identifier]) || isset($this->mongoIndex[$identifier]);
    }
public function hasDefinition ( $ identifier ) { return isset ( $ this -> definitions [ $ identifier ] ) || isset ( $ this -> mongoIndex [ $ identifier ] ) ; }
Check whether a definition exists

@param string $identifier Php attribute name or Document key name

@return boolean
Check whether a definition exists