Use noop function if callback is not defined