check if group exists before deleting