Checks whether group exists or not