In Relation#empty? use #exists? instead of #count.
Merge pull request #12533 from szimek/use_exists_in_relation_empty

In Relation#empty? use #exists? instead of #count.