Your code does not match what you described. Your current if condition is far stronger than what you say you want. To see this, try replacing
if (?)

with
print("Found it!")

and see if the behaviour is as you expect it to be.