@kamtaot here are two examples of such checkes running with loops. You could also try and employ other methods.
Planning will be key.