check if files array is empty (bug fix for some PHP versions)
Merge branch 'fixg2_branch'