Please change the `||` to `or`, this line will parse as `local_request?(env || BetterErrors.allow_remote || ENV['BE_ALLOW_REMOTE'])`.