There is a possibility that options.response is not set, and in that case just checking options.response.design will cause an error.