Normalize parameters
Differentiate null / empty array

When null is returned, make sure array is used.