add function check if has event or not