Anyway to optimize this code for null checks?
if (objA != null && objA .Length > 0)
{
foreach (var child in objA )
{
if (child.Any != null)
{
foreach (var a in child.Any)
{
if (a.Name.ToLower() == "code")
{
//some code
}
}
}
}
}