This should probably use ```response.hasDefined(RESULT))```.