fix(groups): check before array coercion was wrong