I'd recommend the existential operator here, which is better for truthy things:

```coffeescript
if key?
````