Simplify logic to get first group item alternate class