don't try to convert params to a hash if it's an array

in ruby 2.1 Array responds to to_h (you can convert association arrays like [[:key, :value]] to {:key=>:value}) so i just added in a check to make sure we're not trying to convert an array into a hash where we don't want to here