You can use `this._earlyMessages.length = 0` to clear an array.