Check for empty queue