do not crash if the priority queue does not exist