This runs all functions against a single variable.
It will return true
if any of the functions do.
It rescues errors with false
so we don't break in case you are expecting something, but
end up with a nil
.
functions = [:nil?,:empty?]
functions.map{|f| $variable.send(f) rescue false }.inject(:|)