Why is it in a "For each entry"? If you're using for each entry, you'll want to add the condition "Compare two values JSON.CurrentKey = "exists", Set isEventFinished to JSON.CurrentValue"
Otherwise, you can probably get rid of event 22 completely and just move the action "Set isEventFinished to JSON.Get("exists")" to event 21.
Also confirm the isEventFinished variable is a value and not a string.