To be on the safe side, you should use the existential `?`, which checks for undefined, and null, ie:

```coffeescript
if profile?
```