Test the existence of folder without involving exceptions.