can check contains in empty list or array in c# code example
Example: check if list contains any empty element in c#
if (myList.Any(i => i != null))
{
DoSomeThing();
}
if (myList.Any(i => i != null))
{
DoSomeThing();
}