check if callback was provided