public function hasPropertyByName($name)
    {
        foreach ($this->properties as $property) {
            if ($property->getName() == $name) {
                return true;
            }
        }

        return false;
    }
public function hasPropertyByName($name)
    {
        foreach ($this->properties as $property) {
            if ($property->getName() == $name) {
                return true;
            }
        }

        return false;
    }
public function hasPropertyByName ( $ name ) { foreach ( $ this -> properties as $ property ) { if ( $ property -> getName ( ) == $ name ) { return true ; } } return false ; }
Returns if a property exists by name.

@param string $name The property name.

@return bool If the property exists.

@api
Returns if a property exists by name .