Given an array, a single element, or nil, obtain an array - the latter two being a single element array and an empty array respectively.
I mistakenly figured Ruby wo