public function name() { if ($this->name && !empty($this->name)) { return $this->name; } else { return __('Warrior'); } }