Accept event array in helper function