By looking at the screenshot, my guess would be that you should check if the array has at least 1 element before trying to access the first element.
That means you should be doing something like :
if(childs.Num() > 0 && childs[0] != nullptr)
{
...
}