def METHOD_NAME(receivers, actor):
    if not actor:
        return receivers
    if hasattr(receivers, "exclude"):
        return receivers.exclude(id=actor.id)
    return [receiver for receiver in receivers if not receiver == actor]