optimized ScanningBranch#coversBranch method (a bit)