public function __isset(string $prop) : bool
    {
        $annotations = $this->__ornamentalize();
        foreach ($annotations['methods'] as $name => $anns) {
            if (isset($anns['get']) && $anns['get'] == $prop) {
                return true;
            }
        }
        return property_exists($this->__state, $prop)
            && !is_null($this->__state->$prop);
    }
public function __isset(string $prop) : bool
    {
        $annotations = $this->__ornamentalize();
        foreach ($annotations['methods'] as $name => $anns) {
            if (isset($anns['get']) && $anns['get'] == $prop) {
                return true;
            }
        }
        return property_exists($this->__state, $prop)
            && !is_null($this->__state->$prop);
    }
public function __isset ( string $ prop ) : bool { $ annotations = $ this -> __ornamentalize ( ) ; foreach ( $ annotations [ 'methods' ] as $ name => $ anns ) { if ( isset ( $ anns [ 'get' ] ) && $ anns [ 'get' ] == $ prop ) { return true ; } } return property_exists ( $ this -> __state , $ prop ) && ! is_null ( $ this -> __state -> $ prop ) ; }
Check if a property is defined. Note that this will return true for
protected properties.

@param string $prop The property to check.
@return boolean True if set, otherwise false.
Check if a property is defined . Note that this will return true for protected properties .