function exampleOpened = isExampleOpened(id)
    metadata = findExample(id);
    workDir = exampleUtils.getWorkDir(metadata);
    exampleOpened = exampleUtils.folderExists(workDir);
    fprintf(['{' '"id"' ':"' id '","status":' bool2char(exampleOpened) '}']);
end

function b = bool2char(x)
    tf_words = {'false','true'};
    b = tf_words{x+1};
end

