Check that  is an array before looping
Merge branch 'master' of github.com:easydigitaldownloads/Easy-Digital-Downloads