Check If Object Value Is In Array Javascript