protected function hasDoctypeDeclaration($content) { return strpos($content, '<!DOCTYPE') !== false; }