@isethi i think it makes sense to have the conditions as if ... elif ... else ... because if the first condition fails (not body) then there is no point in checking for keys within something that we've already determined doesn't exist. Similarly, after the "schedule" entity we are going one level deeper in the JSON document which is why I grouped the rest of the items in the else.