Check for empty class on list item to avoid empty sub_categories