Javascript See If Array Is Empty Python Array To String