How to remove a game object and replace it with a different one when all objects are gone

I’m really new to coding and only know so much, and my strategies that I’ve been using up to this point don’t work for this issue. There are 4 objects the player is supposed to pick up, and Each object that you pick up is supposed to set a bool to false. It does do that, however my if statement doesn’t seem to be even recognising that the bools are set to false and it’s supposed to do something. It’s probably something simple. Any explanation would be appreciated!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AllCanisters : MonoBehaviour
{
public GameObject CanisterGray;
public GameObject FindCanister;
public GameObject SwitchButton;
CanisterGrab CanisterAll;

// Start is called before the first frame update
void Start()
{
    CanisterAll = CanisterGray.GetComponent<CanisterGrab>(); //Script that the bools are originally set to "true" in.
}

// Update is called once per frame
void Update()
{
    if(CanisterAll.BlueC == false && CanisterAll.RedC == false && CanisterAll.GreenC == false && CanisterAll.PurpleC == false) //Doesn't seem to be doing anything but it's supposed to see if the bools are set to false since whenever you pick up an object, the bool for it gets set to false.
    {
        FindCanister.SetActive(false); //Remove
        SwitchButton.SetActive(true); //Replace
    }
}

}

The important code is where you set CanisterAll.BlueC (and the others both to true and then false, is it in CanisterGrab?). It is also important to know how you assign CanisterGray in the Inspector.