As discussed, please use:
```
email = ENV['EMAIL']
user = User.where(email.present? {email: ENV['EMAIL']} : {admin: true}).order(:id).first!
```