I would prefer:
```
(val ? val.stub() : val)
```
to preserve null vs. undefined