check if a folder already exists before trying to create one.