(fix) safely check for previous content [fixes#3]