Array() instead of conditional

This approach does now work well with hashes. Array() modifies
hash making it an array of hash elements.