Also I'd prefer an `::Hash === content` here, in Opal if `content` for some reason was some kind of native value the `#kind_of?` call would raise a weird error.