check the existence of folder