you could also check if !config.group before you loop