Javascript See If Array Is Empty Python Function Parameters