Why checking against `null`? IIRC there is `isset()` call in `hasSetting()` which already return `false` if value is `null`.