array_pop fixed