There should be no need for the sequential tests - the file has rows using the configured delimiter, or it doesn't.

I don't think the datasource should attempt to guess based on the presence of a potential delimiter anywhere in a row.