Looping through a response that is an array from the previous call

Looks fine to me. What’s your issue exactly? Can you print the session after the check, and check the request and response bodies by lowering logging level to debug?