Could move ``ArrayList<ItemStack> items`` above this line and simply compare ``items != null``.