This breaks my brain:

I know it's a bit more verbose but I find it reads easier:

```javascript
var _containsDoc = function(results, docId) {
    return (_getDocById(results, docId) !== null);
};
..

assert.equal(_containsDoc(results, discussionId), canSearchDiscussion);

```