src/Entities/Settings/SettingsCollection.php
public function getValueByKey(SettingKeyShort $key, $default = null)
    {
        $setting = $this->getByKey($key);

        if (is_null($setting)) {
            return $default;
        }

        return $setting->getValue();
    }
public function getValueByKey(SettingKeyShort $key, $default = null)
    {
        $setting = $this->getByKey($key);

        if (is_null($setting)) {
            return $default;
        }

        return $setting->getValue();
    }
@param SettingKeyShort $key
@param mixed $default The default value to return if setting not found

@return null|string