Consider returning the array instead of loading everything into self::$mimetypes directly.