diff --git a/lib/rack/typhoeus/middleware/params_decoder/helper.rb b/lib/rack/typhoeus/middleware/params_decoder/helper.rb
index <HASH>..<HASH> 100644
--- a/lib/rack/typhoeus/middleware/params_decoder/helper.rb
+++ b/lib/rack/typhoeus/middleware/params_decoder/helper.rb
@@ -48,8 +48,12 @@ module Rack
           # @return [Boolean] True if its a encoded Array, else false.
           def encoded?(hash)
             return false if hash.empty?
-            keys = hash.keys.map{|i| i.to_i if i.respond_to?(:to_i)}.sort
-            keys == hash.keys.size.times.to_a
+	    if hash.keys.size > 1
+              keys = hash.keys.map{|i| i.to_i if i.respond_to?(:to_i)}.sort
+              keys == hash.keys.size.times.to_a
+	    else
+              hash.keys.first =~ /0/
+	    end
           end
 
           # If the Hash is an array encoded by typhoeus an array is returned
FIXED: Any key .to_i would turn 0. So if there was only 1 key, converted? returned true wrongly