Check jsthis before using it to enter a compartment