How could splitPathLength - 1 === path, when path is a string? Or maybe I'm just super rusty on JS corner cases.