function cbToCb(cb) {
  return typeof cb === 'function' ? cb : noop
}
Accepts a parameter and returns it if it's a function
or a noop function if it's not. This allows us to
accept a callback, but not worry about it if it's not
passed.
@param {Function} cb the callback
@return {Function} a function