Added check for after shift() to handle 0-length ._items array.