As well as #any? as davidrac mentioned, with ActiveSupport there’s #present? which acts more like a truth test in other languages. For nil, false, '', {}, [] and so on it returns false; for everything else true (including 0, interestingly).