bool hasVirtualParent(int id) { VirtualNode? node = _virtualNodes[id]; return node != null && node._parent != null; }