Improvements to Hash dumping

I'd flip these 2 lines to check for the key before its contents