The array should be declared outside the loop so if there are no tips, its no nil