This is standard event pattern, hence the helper method to do this check.