isEmpty concurrent modification bugfix

linked list made generic
trivial change