Just for security reasons, can we check that callback is a function?
`if (typeof callback === 'function')`