Checking if request.res exists