check if null exists in the queue