If `listOfSlugs` returns an error this will break. You need to account for that in you call back:

```js
listOfSlugs(function(error, slugs) {
   if (err)
    return callback(err)
  ....
}
```