Added additional isempty() check for $_FILES.