Im not sure in MV but I'll assume it is similar. Trouble is that it requires Iterating every Event on the Map.
NOTE: This is the RUBY version.
Thing is that there are easier ways to do it. The section above is only part of the code that checks for passable. In XP, it can be called as part of the Player, not the Map. There are usually two parts of the code, one is for the Map, the other is for the Characters.
if $game_player.passable?(x, y, d)
# Do stuff here
As you can see, its part of the Player, not the Map. The Map part of passable is also checked by the Player for both Tiles and Events.
As far as the MV code you are looking for, I am absolutely no help, I don't have MV, but hopefully, I can get you pointed in the right direction...