use ternary if for loading settings where possible.