_yaml.node_get is a hot path, optimizing the logic gives us around 3% total runtime improvement
_yaml.node_get