I don't think req.body can be null, but if so:

```js
, all = selector !== null && selector[0] && selector[0].toLowerCase() === "all"
```

But give or take. I just don't like all the try/catch lines.