Maybe the logic here should match the logic above (`index === undefined || index < 0 || index >= this.items.length`) -- perhaps the index could be set within that block instead.