isEmpty method

bool isEmpty()

Check if the Queue is empty

Implementation

bool isEmpty() {
  return head == null;
}