please add some comment here to know this magic. Maybe transition.indexOf('goDeeper') !== -1?