How to check if something belongs to a list or not

How to check if something belongs to a list or not