I don't understand how these two lines are any different than

```js
return result.passed
```

Unless you're trying to force a boolean here, in which case you can do:

```js
return !!result.passed
```

but to me it's just unclear what the intention is here and below. also, it's never a good idea to check whether something is undefined in this way, because undefined can be redefined as something else :-)