Today, the TestHelper contract expects a number to be provided but that is sometimes not possible to compute. It would be easier to return true / false and let the implementation decide if the size is correct or answer true if it cannot be computed.
The use case is MongoDB's in-entity mode where associations are in the entities themselves and thus cannot be computed.