javascript return true if element exists in array