check existance of callback parameter

check that callback exists before reference to avoid error messages in
log