When using APIs, there is an option to check if the list contains an item. Based on my testing, it's a boolean field. It returns true if it finds the variable in the list of fields. But if that list doesn't exist, it throws an error. In my case, I'm hitting Stripe to check if a customer ID exists using the email. If the customer hasn't yet paid using Stripe, the resultant API data doesn't have the necessary data. Because the list does not exist, the condition is throwing an error. I would have assumed that the "List contains Items" check would return false instead of throwing an error, but it doesn't.
My assumption is that "list contains Item" checks if the path exists and then checks if the variable exists. When it doesn't find the path, it throws an error.
Is my understanding correct?
How can I get around this?