public function getMode() { return is_null($this->mode) ? $this->config->getDefaultMode() : $this->mode; }