[#24] Check if the folder exists before using it