pure codestyle question: why not merge those two lines and do

   foreach ($this->documentTranslations[$oid] as $pendingLocale => $translation) {