Add isEmpty method to LinkedList<T>