Adding check for callback to prevent errors on checkout