public function offsetGet($offset) { // Support implicit/lazy parsing $this->parseIfNotParsed(); if (!isset($this->options[$offset])) { return null; // follows normal php convention } return $this->options[$offset]->getValue(); }