Better (here and everytime you call the callback function):
```
if (callback && (typeof callback === 'function')) {
  callback(null);
}
```