Array function is not working [SOLVED]

That was my 'mistake'; I used isMatch because it was not clear what was needed.

Once that was clear, I did change it in the next code.