What is it that we expect? A particular value, or not an empty array? If the latter, `pop` is safe on an empty array, if that's your concern, or is there some other problem with an empty array?