def __virtual__():
    if 'archive.unzip' in __salt__ and 'archive.unrar' in __salt__:
        return __virtualname__
    else:
        return False
Only load if the archive module is available in __salt__
dataset/ETHPy150Open saltstack/salt/salt/states/archive.py/__virtual__