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

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

        return false;
    }