Check if element at position [x] exists in the list

Solution 1:

if(list.ElementAtOrDefault(2) != null)
{
   // logic
}

ElementAtOrDefault() is part of the System.Linq namespace.

Although you have a List, so you can use list.Count > 2.

Solution 2:

if (list.Count > desiredIndex && list[desiredIndex] != null)
{
    // logic
}