check if hash value is defined