I would use getCommandClass to the the command class and test for null to see wether the node supports it.