Updated check if the event output is an array