Hello again

I'm just trying to figure out if this is a suitable way to check if a connection still exists on an FTP client i'm writing. This is what i've got so far;

Code:
    public boolean checkConnectionExists() {
        int reply = ftp.getReplyCode();
        
        if(FTPReply.isPositiveCompletion(reply)) {
            return true;
        }
        else {
            return false;
        }
    }
The documentation is here if you don't already know it but are good with API's.

Cheers again