You should probably return `jin` even if equal to `j`. It's useless to call GetPath with no arguments but there's no need to special case it. It's unintuitive.