Github styleguide suggests `delete_if { |k,v| v.nil? }`