my $foo = defined($some_hash{bar}) and $some_hash{bar};