public function hasConsumptionPreferenceCategory($preference)
    {
        return ! is_null($this->findConsumptionPreferenceCategoryName($preference)) || ! is_null($this->findConsumptionPreferenceCategoryById($preference));
    }
public function hasConsumptionPreferenceCategory($preference)
    {
        return ! is_null($this->findConsumptionPreferenceCategoryName($preference)) || ! is_null($this->findConsumptionPreferenceCategoryById($preference));
    }
public function hasConsumptionPreferenceCategory ( $ preference ) { return ! is_null ( $ this -> findConsumptionPreferenceCategoryName ( $ preference ) ) || ! is_null ( $ this -> findConsumptionPreferenceCategoryById ( $ preference ) ) ; }
Checks if ConsumptionPreferencesCategory exists on profile.

@param string $preference

@return bool
Checks if ConsumptionPreferencesCategory exists on profile .