It's probably better to add the return at the end of the 

```
if (err) {
```

block