Replace with `event.has_sync()` and add that method. Templates shouldn't have such logic.