Completely useless but could you include a check to verify if extensionLogFiles.Length > 0? The .First() wouldn't seem a bit more natural then.