PathResult docs and a couple helper functions