Avoid nested ifs in the callback getters