Javascript See If Array Is Empty Python List