this would be equivalent to:
```javascript
if (key && result[key]) {
```