Use `callable` to check validity of a callback, instead of `is not None`.