Pop array element towards the end