check for existence before printing