public function get(string $settingsField = null, $default = null)
    {
        // if no settings field was given return all settings
        if (is_null($settingsField)) {
            return $this->settings;
        }

        $setting = $this->settings;

        foreach (explode('.', $settingsField) as $field) {
            if (is_array($setting) && array_key_exists($field, $setting)) {
                $setting = &$setting[$field];
            } else {
                return $default;
            }
        }

        return $setting;
    }