public function isJsonRequest() : bool { return 1 === preg_match('{^application/(?:\\w+\\++)*json$}i', $this->data['request_headers']['content-type']); }