Is an intention for:
unless (number_of_instances.**nil?**
What are incorrect vlues of row[0] can be?