[xar] checking a struct is NULL to use it?