Array function is not working [SOLVED]

change to

if (isMatch == false)

to achieve what you are describing