Is there a shorter way of doing the following?

```
foo = 
  config.include?(:bar) ?
    "#{bar}.baz" :
    "baz"

```

I'm looking for a readable one-liner that appends a variable, plus a delimiter, if the variable exists (assuming it's a string). 

`config` is a Hash.