"Explicit is better than implicit." Thus explicitly poping out rather than if-ing around to avoid adding to the array in the first place.