This can just be one line  `backToPreviousLevel = config.backToPreviousLevel || function() {};`