my $foo = $hash{$key}; if(defined $foo)