src/Oss2/Doctrine2/WithPreferences.php
public function hasPreference( $name, $index = null, $includeExpired = false )
    {
        return $this->getPreference( $name, $index, $includeExpired );
    }
public function hasPreference( $name, $index = null, $includeExpired = false )
    {
        return $this->getPreference( $name, $index, $includeExpired );
    }
public function hasPreference ( $ name , $ index = null , $ includeExpired = false ) { return $ this -> getPreference ( $ name , $ index , $ includeExpired ) ; }
Does the named preference exist or not?

WARNING: Evaluate the return of this function using !== or === as a preference such as '0'
will evaluate as false otherwise.

@param string $name The named attribute / preference to check for
@param int $index default null If an indexed preference, get a specific index
@param boolean $includeExpired default false If true, include preferences even if they have expired.
@return boolean|string If the named preference is not defined or has expired, returns FALSE; otherwise it returns the preference
@see getPreference()
Does the named preference exist or not?