credo

if not isnothing(oggetto) then...