Fix notice in array_shift