`res` can be `nil`, which will cause this line to bomb out. Better to check it beforehand and return early if it's nil