use `this.groupStack.length` ?