bool IntLinkedList::isEmpty() const { //added const for const-correctness, should be added to declaration as well return head == nullptr; }