How about this? This way, it can still return `null` rather than `undefined`.
```coffeescript
 if locale_data? and locale_data[code]? then locale_data[code] else null
```
We can do that if `null` is preferable to `undefined`. (Maybe for debugging?)
If not, then I can make it 

```coffeescript
locale_data[code] if locale_date?
```
which is simpler code.

What do you think?