Do you need an `SG_UNREF(child)` if you enter this if branch?