undefined method `empty?' for nil:NilClass fixed  [t: 0:24]