If it's okay to introduce a new gem dependency for `activesupport` (currently a jekyll development time dependency), there's a helper method in that gem called `blank?` which works like `NIIsArrayWithObjects` & `NIIsStringWithAnyText`.

Otherwise, `obj.nil? || obj.empty?` should work but a bit longer.