Check If Value Not In Array Javascript Iteration Method