Correctly handle empty arrays of strings