It returns the value when it finds one, otherwise it creates another empty entry in the array.
Now that I realized I should have had this as a table all along, I am rethinking my approach a little bit on it. I should be able to just find the last used row in the table, then loop through it...