Check If An Array Is Empty Python