Would be nice to avoid the ternary. How about this?

```ruby
User.where(
  account_id: account_id,
  email: email.to_s.downcase
).first || NullUser.new
```