check for array

fix for bug: Can't use string ("0") as an ARRAY ref while "strict refs" in use at script/ddgc_commit_edits.pl line 46.

@MariagraziaAlastra 
It sounds like a `0` is being returned when a `[]` should be.