protected function isPdf($file) { $mime = static::mimeType($file); return strpos($mime, 'application/pdf') !== false; }