code: public synchronized boolean existsDatabase() throws IOException {
      storage.checkConnection();
  
      try {
        final OChannelBinaryClient network = storage.beginRequest(OChannelBinaryProtocol.REQUEST_DB_EXIST);
        try {
          network.writeString(storage.getName());
        } finally {
          storage.endRequest(network);
        }
  
        try {
          storage.beginResponse(network);
          return network.readByte() == 1;
        } finally {
          storage.endResponse(network);
        }
  
      } catch (Exception e) {
        OLogManager.instance().exception("Error on checking existence of the remote storage: " + storage.getName(), e,
            OStorageException.class);
        storage.close(true);
      }
      return false;
    }
docs: Checks if a database exists in the remote server.
  
  @return true if exists, otherwise false
  @throws IOException