See the section on Bool Return Values and Safe Operator Bool for how to ensure retained Usd objects are still valid for use.