Javascript See If Array Is Empty Javascript Function How To Use