Check result of array.indexOf against <0