Fix# NoMethodError: undefined method `empty?' for #:Fixnum

Fix issue NoMethodError: undefined method `empty?' for #:Fixnum