<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def documents(cls, filter=None, **kwargs):
 """ Returns a list of Documents if any document is filtered """

        documents = [cls(document) for document in cls.find(filter, **kwargs)]
        return [document for document in documents if document.document]