simplify code by throwing away if/else

we don't care if something is an array, because we can easily turn it
into an array, flatten it, and then run join on it. join won't do
anything for one element, so

    $scalar = 'baz'
    join(flatten([ $scalar ]), ', ')

still returns `baz`, whereas:

    $ary = ['foo', 'bar']
    join(flatten([ $ary ]), ', ')

does, indeed, return `foo, bar`
Merge pull request #89 from igalic/simplify

simplify code by throwing away if/else