Asking if a tile is impassable

I know it is possible to ask for the passability of a tile,
so I wonder if there is a scripter here, who is able to
script a condition to use in events.

Like: Is the tile 3 above passable?
If no, then don´t jump to that spot.

or tile 1 to the right passable?
Yes, no.
Code:
$game_map.passable?(x, y, d)
Game_Map said:
#--------------------------------------------------------------------------
# * Determine if Passable
# x : x-coordinate
# y : y-coordinate
# d : direction (0,2,4,6,8,10)
# * 0,10 = determine if all directions are impassable
#--------------------------------------------------------------------------

Original thread: https://forums.rpgmakerweb.com/threads/asking-if-a-tile-is-impassable.151964/