public function setOption($optionName, $value) { if ($this->templatePaths instanceof TemplatePaths) { $this->templatePaths->setOption($optionName, $value); } }