Pop nil when there are no elements