Is checking the class of `left` a bad way to tell if it is a Hash or not?