You have a queue called someQ
There are two ways to find out if the queue is empty()

head == null;

size() == 0; or

size == 0;

where size() is determined by the number of elements...