In general, I do like Yoda conditions, but they're unnecessary here, because of this:

```
typeof d = 'object'
ReferenceError: Invalid left-hand side in assignment
```