private function checkFormContentType($contentType = '') { if (!is_string($contentType)) { return false; } return in_array(explode(';', $contentType)[0], ['multipart/form-data', 'application/x-www-form-urlencoded']); }