This can be shortened to `(typeof callback === 'function')`