Use your debugger, have a look at the collection
Is caseStatusHistoryInfoList collection properly populated. Is there definitely an item in the collection at index 0
caseStatusHistoryInfoList[0] == "New Case"
That line will fail and throw the exception you are seeing if your collection count is zero. Your test for caseStatusHistoryInfoList.Count <= 1 is a bit strange really.