Instead of having three places with `callback && callback();`, at the top of the function body, add a check the creates a no-op: 

```js
callback = typeof callback === 'function' ? callback : function() {};
```

Then all of the call sites can safely change from `callback && callback();` to `callback();`