Verify the input is a hash.