Fix rubucop warning about Array.new