Node Js Check If Element Exists In Array Javascript Function How To Use