def schema_defines_object(schema):
    """
    If properties are defined for a schema, it will translate to an instance of
    `Object`.
    """
    return schema.properties and schema.type_ in ('object', None
        ) and not schema.additional_properties
