public function hasProperty($property)
    {
        if (property_exists($this, $property) || !is_null($this->data($property))) {
            return true;
        }

        return false;
    }
public function hasProperty($property)
    {
        if (property_exists($this, $property) || !is_null($this->data($property))) {
            return true;
        }

        return false;
    }
public function hasProperty ( $ property ) { if ( property_exists ( $ this , $ property ) || ! is_null ( $ this -> data ( $ property ) ) ) { return true ; } return false ; }
Check if propery exists either in the class or the meta collection.

@param string $property

@return bool
Check if propery exists either in the class or the meta collection .