public boolean hasMaster() {
    return super.getData(false) != null;
  }
Check if there is a master available.
@return true if there is a master set, false if not.
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MasterAddressTracker.java