public function acceptType($type) {
        if ( ! isset($this->claim->accept_types) ) return false;
        if ( ! is_array($this->claim->accept_types) ) return false;
        return in_array($type, $this->claim->accept_types);
    }