Condition if the event with the specific summary is currently active

Hi!

I’m creating an automation trigger and need to check a condition whether a calendar event with the specific subject is currently active. Didn’t find any clue in calendar integration doc. I have an idea to set a boolean input to True every time the required event starts and back to False once it’s finished. Looks like a working solution, however looks like a better solutiuon should exist. Can anyone please help?