working with an empty array