# Golden test output of GoldenSbeStageBuilderTest/TestUnwind
[2] project [s6 = 
    if (isNull(s5) && !((exists(s3) && (isArray(s3) && isArrayEmpty(s3))))) 
    then s2 
    else makeBsonObj(MakeObjSpec([a = Set(0)], Open, NewObj, 0), s2, s4) 
] 
[2] unwind s4 = outField, s5 = outIndex, s3 = inField _preserveNullAndEmptyArrays 
[2] project [s3 = getField(s2, "a")] 
[1] project [s2 = getElement(s1, 0)] 
[1] virtualscan s1 {[[{"a" : [1, 2, 3]}]]} 
