public boolean checkIfBaseNodeAvailable() {
    try {
      if (ZKUtil.checkExists(watcher, watcher.getZNodePaths().baseZNode) == -1) {
        return false;
      }
    } catch (KeeperException e) {
      abortable.abort("Exception while checking if basenode (" + watcher.getZNodePaths().baseZNode
        + ") exists in ZooKeeper.", e);
    }
    return true;
  }
Checks if the baseznode set as per the property 'zookeeper.znode.parent' exists.
@return true if baseznode exists. false if doesnot exists.
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKNodeTracker.java