For coffeescript things, you usually want to use the existential operator `?`. I tend to use `unless` instead of `if !` too:

```coffeescript
unless msg.match[2]?
```