Check if a file exists on jottacloud

def is_file(jottapath, JFS):
    """Check if a file exists on jottacloud"""
    log.debug("is_file %r", jottapath)
    try:
        jf = JFS.getObject(jottapath)
    except JFSNotFoundError:
        return False
    return isinstance(jf, JFSFile)