There are modules to do that, for example Data::Diver, or modules that disable autovivification.
There was also a proposal (and patch) that adds an "exists-or" operator \\ to perl, to parallel the "or" || and "defined-or" // operator. I don't know if it got accepted in the end.