public function isFormData() { return $this->getMethod() === self::METHOD_POST && $this->getContentType() === null || in_array($this->getMediaType(), self::$formDataMediaTypes); }