Implements a naive queue.empty().