E_WARNING : Variable passed to each() is not an array or object