code: public boolean directoryExists(File[] files) {
          for (int i = 0; i < files.length; i++) {
              if (files[i].isDirectory()) {
                  return true;
              }
          }
          return false;
      }
docs: Checks if the files contain a directory.
  
  @param files the files.
  @return a boolean, true if there is a file that is a directory.