add support for array with one item