Merging string with empty array results in empty array