public function getOption($key, $section = null) { if (isset($this->options[$key])) { if (!is_null($section)) { return $this->options[$key][$section] ?? null; } else { return $this->options[$key]; } } else { return null; } }