so this test is slightly wrong, it should be 

```
if (docs.rows[i].doc.branch === 'master' &&
    docs.rows[i].doc.pull_request === 'false') { 
```