Use conditional on the event handler event object to allow testing to call it directly.