Check for callback being defined