Ensures that shift/push methods don't generate error if items array is
empty