I was thinking I to protect against a nil argument, but I just checked in irb and nil.kind_of? returns false. Fix on the way.