How to check if there is an event on a specific tile?

I'm trying to make a simple furniture arrangement system using the Event Spawner plugin. To prevent multiple furniture installations in the same tile, I need to check if there are events (furniture) on the tile. Please help me make this idea happen!
Code:
$gameMap.eventsXy(x, y).length
will be true if there is an event on coordinates x, y.
Code:
$gameMap.eventsXy(x, y).length
will be true if there is an event on coordinates x, y.
I was surprised because it was simpler than I thought. Thank you very much! I'll have to try it as soon as I get home!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-there-is-an-event-on-a-specific-tile.170535/