code: public function getName($language = null)
      {
         //TODO set this in a service, PLUS twig function
         if ($language) {
            if (isset($this->name[$language])) {
               return $this->name[$language];
            } else {
               foreach ($this->name as $name) {
                  if (!empty($name)) {
                     return $name;
                  }
               }
            }
            
            return '';
            
         } else {
            return $this->name;
         }
      }
docs: Get name
  
  @return array