I guess you meant `!== undefined`, but in both cases this would be equivalent to:
```javascript
if (key && result[key]) {
```