Change isEmpty logic for Circular Linked List