this doesn't look right.

I think we just always return `undefined` here. this getter is used only if the path has a single segment.