Use enum NodeType instead of opaque true/false