protected function settings($key = false)
    {
        if ($this->settings == false) {
            return false;
        }
        if ($key == false) {
            return $this->settings;
        }
        if (isset($this->settings[$key])) {
            return $this->settings[$key];
        }
        return false;
    }