forEach on an object results in an error. 

forEach call could happen on an object. Make sure that is converted to a single item array.