Check whether response object is defined