To check if the element is present in the hash