TYPO3/Extbase/Domain/Model/BaseValueObject.php
public function has($property)
    {
        if (is_array($property)) {
            foreach ($property as $item) {
                if (is_a($this->{$item}, '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage')) {
                    return ($this->{$item}->count()) ? true : false;
                } else {
                    return (!empty($this->{$item})) ? true : false;
                }
            }
        } else {
            if (is_a($this->{$property}, '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage')) {
                return ($this->{$property}->count()) ? true : false;
            } else {
                return (!empty($this->{$property})) ? true : false;
            }
        }
    }
public function has($property)
    {
        if (is_array($property)) {
            foreach ($property as $item) {
                if (is_a($this->{$item}, '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage')) {
                    return ($this->{$item}->count()) ? true : false;
                } else {
                    return (!empty($this->{$item})) ? true : false;
                }
            }
        } else {
            if (is_a($this->{$property}, '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage')) {
                return ($this->{$property}->count()) ? true : false;
            } else {
                return (!empty($this->{$property})) ? true : false;
            }
        }
    }
public function has ( $ property ) { if ( is_array ( $ property ) ) { foreach ( $ property as $ item ) { if ( is_a ( $ this -> { $ item } , '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage' ) ) { return ( $ this -> { $ item } -> count ( ) ) ? true : false ; } else { return ( ! empty ( $ this -> { $ item } ) ) ? true : false ; } } } else { if ( is_a ( $ this -> { $ property } , '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage' ) ) { return ( $ this -> { $ property } -> count ( ) ) ? true : false ; } else { return ( ! empty ( $ this -> { $ property } ) ) ? true : false ; } } }
Checks if a property has value

@param mixed $property array|string
@return boolean
Checks if a property has value