The opposite of `xxx.empty?` is `xxx.any?`.  So you can change all of these `empty?`s to `any?` and remove the `!`.