Restored array_pop() and array_shift()