public static function tryMimeContentType($file) { return function_exists('mime_content_type') ? mime_content_type($file) : ''; }