ftpserver.pl: Fixed empty array checks

...from commits 28427b408326a1 and e8313697b6554b.