consolidate checking if printonly for #1526