Add a hash to an array