code: public static boolean containsEntry(File zip, String name) {
      ZipFile zf = null;
      try {
        zf = new ZipFile(zip);
        return zf.getEntry(name) != null;
      }
      catch (IOException e) {
        throw ZipExceptionUtil.rethrow(e);
      }
      finally {
        closeQuietly(zf);
      }
    }
docs: Checks if the ZIP file contains the given entry.
  
  @param zip
  ZIP file.
  @param name
  entry name.
  @return <code>true</code> if the ZIP file contains the given entry.