You need brackets for if() statements.   Presumably running jshint will tell you this.

But in this case why do you need the if/else at all?   Just call:

```
assert(array.indexOf(element) >= 0, message);
```