hmm...  want to switch these two conditions, like

```javascript
while (i < res.length && !res[i])
```
It doesn't hurt, but looks weird.