var existing = item.events ? (this.items.containsKey(item.getItemId()) ? item : null) : this.items.get(item);