'Checks if file on the remote exists
:param file_path: Full path to the file on remote machine
:type file_path: String'

def file_exists(self, file_path):

    if (not file_path):
        raise ValueError('Missing    file    path')
    if (self.transport is None):
        raise TypeError('Transport    cannot    be    none')
    sftp = self.transport.open_sftp_client()
    result = None
    try:
        sftp.stat(file_path)
        result = True
    except IOError:
        result = False
    finally:
        sftp.close()
    return result
