You can skip the ` == true` part.

Then, maybe, rename the variable to reflect its expected boolean value.
```ruby
redirect_to main_app.payments_user_path(current_user) if has_error
```