Find particular elemen

I need to find particular element is existing or not. If it is not there I need to do some other operations. I used size()>0 to check the existence of that element. But it takes much time if an element is not there. please help to find one solution.