public function __isset($var)
    {
        if ($this->getContentInstance() instanceof ContentSet) {
            throw new UnknownPropertyException(sprintf(
                'Unknown property %s in %s.',
                $var,
                ClassUtils::getRealClass($this->getContentInstance())
            ));
        }

        return array_key_exists($var, $this->_data) && 0 < count($this->_data[$var]);
    }
public function __isset($var)
    {
        if ($this->getContentInstance() instanceof ContentSet) {
            throw new UnknownPropertyException(sprintf(
                'Unknown property %s in %s.',
                $var,
                ClassUtils::getRealClass($this->getContentInstance())
            ));
        }

        return array_key_exists($var, $this->_data) && 0 < count($this->_data[$var]);
    }
public function __isset ( $ var ) { if ( $ this -> getContentInstance ( ) instanceof ContentSet ) { throw new UnknownPropertyException ( sprintf ( 'Unknown property %s in %s.' , $ var , ClassUtils :: getRealClass ( $ this -> getContentInstance ( ) ) ) ) ; } return array_key_exists ( $ var , $ this -> _data ) && 0 < count ( $ this -> _data [ $ var ] ) ; }
Magical function to check the setting of an element.

@param string $var The name of the element

@return boolean TRUE if an element is set for $var, FALSE otherwise

@throws UnknownPropertyException Occurs when $var does not match an element
Magical function to check the setting of an element .