check_4dir: had two `return` statements