Check if callback exists before calling