code: private Boolean hasChildNodes(Node n) {
          boolean flag = n.hasChildNodes();
          if (flag && XMLUnit.getIgnoreComments()) {
              List nl = nodeList2List(n.getChildNodes());
              flag = !nl.isEmpty();
          }
          return flag ? Boolean.TRUE : Boolean.FALSE;
      }
docs: Tests whether a Node has children, taking ignoreComments
  setting into account.