for the case of a jail cell, I'm still going to disagree with that
you don't need to check anything besides the player leaving and if the door is open/closed
I find it easier to just plop down a zone brick + door and event them and duplicate them to each cell than to figure out the coordinates and have the zones each time, and figure out how to tie it to the build so it doesn't happen on other maps and such shenanigans