ensure that null/undefined values are not coerced to an array