helper function to check class of input

checkIsClass(parameter, classes)

Arguments

parameter

the input parameter to check

classes

which classes it should belong to (one or more)