docs: public static boolean hasExtension(String extension) {
          if (extension == null || extension.length() == 0) {
              return false;
          }
          return extensionToMimeTypeMap.containsKey(extension);
      }