def is_document(value):
    """Check if value is a simplemodels.models.Document instance

    :param value: some value
    :return: bool
    """
    from simplemodels.models import Document
    try:
        return issubclass(value, Document)
    except TypeError:
        return False
