Check If Array Or Not Javascript