if you set `$useCdn` default to 'auto' you can use here:
```php
if ($useCdn)
```