public function isProtected($name)
    {
        $key = $this->getProtectionKey($name);

        if (array_key_exists($key, $this->getProtections())) {
            return (bool) $this->getProtections()[$key];
        }

        return false;
    }
public function isProtected($name)
    {
        $key = $this->getProtectionKey($name);

        if (array_key_exists($key, $this->getProtections())) {
            return (bool) $this->getProtections()[$key];
        }

        return false;
    }
public function isProtected ( $ name ) { $ key = $ this -> getProtectionKey ( $ name ) ; if ( array_key_exists ( $ key , $ this -> getProtections ( ) ) ) { return ( bool ) $ this -> getProtections ( ) [ $ key ] ; } return false ; }
Checks if the given resource is protected or not.

@return bool
Checks if the given resource is protected or not .