https://learn.microsoft.com/en-us/dotnet/api/system.linq.asyncenumerable.elementatordefaultasync?view=net-10.0
AsyncEnumerable.ElementAtOrDefaultAsync Method (System.Linq) | Microsoft Learn
Returns the element at a specified index in a sequence, or a default value if the index is out of range.
methodsystemlinqmicrosoftlearn