protected function getOption($name, $defaultValue) { $var = $this->option($name); if (is_null($var)) { return $defaultValue; } return $var; }