fn second_root_node_present(events: &[Event]) -> boolExpand description
Walk events to detect a document that already contains a closed
root-level node. Returns true when the second root node arrives and
the existing event stack has no unmatched MapStart/SeqStart.