Refactored and support exist? method which can know whether the group already exists