Ruby way of setting a variable if .nil?