A long time ago I saw this trick in Ruby. Instead of doing (for example)
if array1.empty? and array2.empty? and array3.empty?
You could call all of the objects at once and append the operation at the end, kind of like
if %w(array1 array2 array3).each { |a| a.empty? }
But I think it was simpler than that... or, it could be that. I really don't know, but that's why I'm interested in finding out. Thanks.