for product_group.rb include? method was giving error on empty array.count, changed to .length