need to add a test for `null` and empty array. (to avoid regressions)