Will this fail if cb is not a valid function?