public function hasTranslation($locale = null)
{
$locale = $locale ?: $this->locale();
foreach ($this->translations as $translation) {
if ($translation->getAttribute($this->getLocaleKey()) == $locale) {
return true;
}
}
return false;
}