<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_model(obj, models=None):
 """Checks object if it's a peewee model and unique."""

    return isinstance(obj, type) and issubclass(obj, pw.Model) and hasattr(obj, '_meta')