Fix  shuffle() expects parameter 1 to be array..
Fix Invalid argument supplied for foreach()