public function getOption($id) { if ($this->options) { foreach ($this->options as $option) { if (strtolower($option->getId()) == strtolower($id)) { return $option; } } } }