lines 67-69 can be condensed to

    unless v.nil?