def METHOD_NAME(self, model):
    """
    Check for perfect matching in model.
    If this fails, it indicates a structural singularity in the model.
    """
    super().METHOD_NAME(model)
    if model.is_indexed():
        for d in model.values():
            self._check_matching(d)
    else:
        self._check_matching(model)