Shift the whole array when another is empty