I notice that you put it like this
if exist x
do whatever.

Are you not supposed to do

if exist x = 1

I always thought that you had to state whether the value was true or false i.e. 1 or 0?

Thanks for the very speedy reply