add event array to model, add hasListener function