Ruby is earlier than 2.0.0, nil doesn't have .to_h
Merge pull request #2 from ToQoz/ruby-1.9-or-earlier-doesnt-have-nil-to_h

Ruby is earlier than 2.0.0, nil doesn't have .to_h