add (array)

fix Warning: Invalid argument supplied for foreach()