Is there any reason not to export this helper? Seems useful to share this logic with downstreams trying to write their own XPath-based linters.