bugfix

more adequate check for presence of element in list