You don't actually need this variable, since you could just override the `obj` variable in the loop:

```javascript
while (obj != null && ...) {
  obj = obj[...];
}
```