Docs: Better documentation for firstItemInPath function.