[thin_check] Fix bug in clear needs check logic.

Mixed up bools and int returns.