code: public static boolean isFileExists(String filePathString) {
          File file = new File(filePathString);
          if (file.exists() && !file.isDirectory())
              return true;
          return false;
      }
docs: Checks if is file exists.
  
  @param filePathString the file path string
  @return true, if is file exists