fix: #3555634 make sure to not call the cardinality method on objects that do not have it implemented