support for node.hasNodes() and node.hasProperties()