Returns true if the node has a child with name.
name
bool hasChild({required String name}) { return _children.containsKey(name); }