code: public static boolean exist(String filePath) {
  
          File f = new File(filePath);
  
          if( !f.isFile() ) {
              return false;
          }
  
          return true;
      }
docs: Check file existence
  
  @param filePath
  
  @return
  Return <code>true</code> if the file is exist, otherwise return <code>false</code>