git commit -m 'Issue #3052771 by osman: Upgrade v1 -> v2: Warning: Invalid argument supplied for foreach()'