Check whether priority queue is empty