Is function check on the callback argument before trying to call it