private function getGoal($goalId) { $goals = $this->getGoals(); if (!empty($goals[$goalId])) { return $goals[$goalId]; } }