Minor refactor - Uses Enumerable#to_a instead of iterate and add to an
array