method to know if an item is present in a List