Swap logic on yum's existence