Element activity always show false

Hi @Rahul_Unnikrishnan @Gokul001 @sangeethaneelavannan1 so im using for each activity for looping and inside that for each i have if statement for that element exist. Where should i put my element exist? inside the for each or outside or both are same?