Checking if an object is a data.table object and (optional) testing if some column names are valid for it
Useful links