How to check if a specific video is finished playing

I am working on a little test project. In this project the player gets to see a video and after some time the player can choose what path he wants to take. Sort of like how late shift and the complex work.

There is an event for the media player “On End Reached” but this event runs whenever a video is done.
But I want it run when a specific video is done.

I already have a solution to this but it’s not the best way of doing it, I think.
Currenlty I have it setup so that when the video is playing it sets a boolean to true, and then when that video is done the event is called again. Then it’ll go to a branch where it checks if that boolean is true or not, if true it’ll put on the new video etc.

Is there maybe a better way of doing this?