my %hash; ... #check to see if anything's in my hash... if (defined %hash) ...