if (ref $hash{$key} eq "ARRAY") { print "It's an array ref!"; } else { print "Not an array ref!"; }