public function getTranslation($locale) { if ($this->hasTranslation($locale)) { return $this->translations[$locale]; } else { return; } }