If the type's the same here can it be changed to items.length ===  0?  I've been meaning to be better about this practice myself...