Move the code to check if an event is live to the common lib