code: public boolean hasNodeWithId(int nodeId) {
          Node node = nodesById.get(nodeId);
          if(node == null) {
              return false;
          }
          return true;
      }
docs: Given a cluster and a node id checks if the node exists
  
  @param nodeId The node id to search for
  @return True if cluster contains the node id, else false