Making sure groups action is not triggered if groups does not exist