Making it clearer that res is undefined with err