private function isFragment($contentType, $options) { return $contentType == 'html-fragment' || $contentType == 'text/html-fragment' || $options[self::IS_FRAGMENT]; }