fix check for existing content