Could we check previously if `successCb` and `errorCb` are functions?