make sure we check array has items in it in the example