cover the empty array case