How to check if an array index exists or not in javascript? How to check if an array index exists or not in javascript? javascript javascript