[SmartQueue] Add a new method: popIfNonEmpty().