Return input if it is an array, otherwise return input wrapped in an array. If input is null or undefined, return empty array.