check class of an objective object
is.objective(x)
x
an object potentially of type 'objective' to test
Brian G. Peterson