Added isEmpty method to LinkedList