def METHOD_NAME(self, apps):
    """Return the application_id the instance would have for the specified
    app ids."""
    # i.e. app(id) if single app; 0 for all apps if many; or none otherwise
    return apps[0] if len(apps) == 1 else 0 if apps else None