<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def installed(self, app=None):
 """Return `True` if the registry has been installed in current applications."""

        if app is None:
            app = current_app
        return self.__EXTENSION_NAME in app.extensions