move checkEventProperties declaration outside recusive dom walk