public function hasTranslation($key, $locale = null) { return $this->translator->has($key, $locale); }