no warnings "uninitialized"; # then it's just a regular check if ($params->{root} eq '') ...