That `cb` parameter is optional to know when the `refresh` function ended.

Adding this new check makes this method asynchronous. We don't care about it when launching settings, but is useful for testing purposes.