I have seen examples like this for json that show how to handle an optional object (subtree):
Karate DSL : How to check if the JSON object is optional, but if that ob