Can we use a `if (!settings) return;` instead of the whole `try…catch`?