See the note above about checking for the existence of ```res```.