Some failsafe path checking.