check that response->policies->policy exists before using it.