mime type function_exists protection