Here I'd use something like `firstSegment`  or `firstToken` instead of `path`.