modified if statement for web scans