corrected table.concatenate to return {} if nils