public function settings($setting = null)
    {
        if (!is_null($setting)) {
            return isset($this->settings[$setting]) ? $this->settings[$setting] : null;
        }

        return $this->settings;
    }