We have ActiveSupport available, so you can just do `unless modules.blank?` (or `if not modules.blank?` if you prefer not to use `else` with `unless`) since `blank?` will work on `nil` and be `true` and on `[]` it will be `true` while on a non-empty aread `blank?` will be `false`.