MV Conditional check to see if event(ID) exists on current map

It doesn't matter if the event is "erased" or not, I just want to see if it's on the map at all. The reason is I have a huge template map with almost 500 events, so when I make a new playable map, I end up deleting a lot of unnecessary events, and it gets tedious doing it manually.

Thanks!
Hi there!

You can just do:
$gameMap.event(EVENT ID)

If the event does not exist, it will return a falsy value.
@Eliaquim

Thank you, that was very helpful. I had events that were spawning in other events, so I used it as a counter, and it turned out I had 610 events on a single map, so that was good to know.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-check-to-see-if-event-id-exists-on-current-map.151685/