check if an object is of a certain class
check_class(x, classname)
x
object
classname
character
nothing, emit error if check not satisfied