static public boolean doesFileExist(Context c,String fileName,long fileSize,boolean deleteFileOnMismatch){
  File fileForNewFile=new File(Helpers.generateSaveFileName(c,fileName));
  if (fileForNewFile.exists()) {
    if (fileForNewFile.length() == fileSize) {
      return true;
    }
    if (deleteFileOnMismatch) {
      fileForNewFile.delete();
    }
  }
  return false;
}

static public boolean doesFileExist ( Context c , String fileName , long fileSize , boolean deleteFileOnMismatch ) { File fileForNewFile = new File ( Helpers . generateSaveFileName ( c , fileName ) ) ; if ( fileForNewFile . exists ( ) ) { if ( fileForNewFile . length ( ) == fileSize ) { return true ; } if ( deleteFileOnMismatch ) { fileForNewFile . delete ( ) ; } } return false ; }
helper function to ascertain the existence of a file and return true / false appropriately
