6temes PRO said about 3 years ago on Avatars :
`response.code != '302' ? true : false` could be just `response.code != '302'`

By the way, in order to use fewer resources in the server, something interesting could be to do the same in the front end using Stimulus.