optimized performance of VoxelNode::isLeaf()