Thanks @zaach - added the additional check to ensure the array length >= 2. I trim the translation afterwards, and then if the translation is empty, go back to using the key, so the other portions of that check are not necessary for us.