I think `input.kind_of?(Enumerable)` is simpler.