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