javascript if array element exists