As you have added the default to `config/api.js`, I don't think you need to be extra safe here with the this additional check.