Avoid uninitialized variable warnings on Ruby 2.7
Avoid uninitialized variable warnings on Ruby 2.7

Since the variable is either set to true, or not present at all
we can check wether it's defined instead.

rails/rails,rails/rails,rails/rails,rails/rails