public function contains($name) { $i18n = $this->getCurrentI18nObject(); return $i18n ? $i18n->contains($name) : parent::contains($name); }