Only attempt to print if x is a suitable data.table