I think this can be simplified to:

```coffeescript
locale_data[code] if locale_data?
```

It's ok if the method returns `undefined`.