Can't get a rather simple if exists statement to return true

Take a look at this post for inspiration.