For some reason it returned an array when i has a list of one item.  So to make it more reusable i added this
what would you do? create two functions?