src/Model/ApiResourceBase.php
public function hasProperty($property, $lazyLoad = true)
    {
        if (!$this->isProperty($property)) {
            return false;
        }
        if (!array_key_exists($property, $this->data) && $lazyLoad) {
            $this->ensureFull();
        }

        return array_key_exists($property, $this->data);
    }
public function hasProperty($property, $lazyLoad = true)
    {
        if (!$this->isProperty($property)) {
            return false;
        }
        if (!array_key_exists($property, $this->data) && $lazyLoad) {
            $this->ensureFull();
        }

        return array_key_exists($property, $this->data);
    }
public function hasProperty ( $ property , $ lazyLoad = true ) { if ( ! $ this -> isProperty ( $ property ) ) { return false ; } if ( ! array_key_exists ( $ property , $ this -> data ) && $ lazyLoad ) { $ this -> ensureFull ( ) ; } return array_key_exists ( $ property , $ this -> data ) ; }
Check whether a property exists in the resource.

@param string $property
@param bool $lazyLoad

@return bool
Check whether a property exists in the resource .