[tor-commits] [sbws/maint-1.1] minor: scanner: move checking helper to methods