public boolean hasData() throws KeeperException {
    return ZKUtil.checkExists(zookeeper, queuesZNode) != -1
      || ZKUtil.checkExists(zookeeper, regionsZNode) != -1
      || ZKUtil.checkExists(zookeeper, hfileRefsZNode) != -1;
  }
Pair&lt;PeerId, List&lt;HFileRefs&gt;&gt;
hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ZKReplicationQueueStorageForMigration.java