private boolean hasValidClientPortInList(int index) {
    return (clientPortList.size() > index && clientPortList.get(index) > 0);
  }
Check whether the client port in a specific position of the client port list is valid.

@param index the specified position
ql/src/test/org/apache/hive/testutils/MiniZooKeeperCluster.java