Fixed check for callback