def can_advance_stage(target_stage, children):
    """Helper to know if all children are at lest at a target stage of discovery"""
    can_advance = True
    for child in children.values():
        if child.stage_of_discovery < target_stage:
            can_advance = False

    return can_advance