Add pop value feature to ArrayHelper