Checks for file in hash before scanning.