public function getTopicNames() { $names = array(); foreach ($this->topics as $topic) { $names[$topic->getTopicId()] = $topic->getName($this->getLanguage()); } return array_filter($names); }