@if (item.Value is { } node) { @node.Text }