private function checkRecipientHasNoHeaders($id) { Assertion::true(empty($this->getSharedHeaders()) && empty($this->getRecipient($id)->getHeaders()), 'This JWE has shared headers or recipient headers and cannot be converted into Compact JSON.'); }