public function isAuthorized($authZ)
    {
        // We have a list of entitlements to check against.
        if (is_array($authZ)) {
            foreach ($authZ as $currentAuthZ) {
                if ($this->checkEntitlement($currentAuthZ)) {
                    return true;
                }
            }
        } else {
            return $this->checkEntitlement($authZ);
        }

        return false;
    }