Update the fileExists method

The ftp_nlist returns an empty array in case no matching files were found.
Using is_array() will return always true even on an empty array.
But an empty array is considered as a false value, so just cast the ftp_nlist() result to boolean