deque: check for empty queue when peeking