how to Insatiate a random gameobject in a string only if that game object does not exist

hey,
so I have 6 types of power-up drops that I would like to drop randomly. 2 of which are for different types of extra balls. I don’t want those to powerups to drop if either of them is active or if the balls themselves are active. how I have it set up now works with just the one ball but it also means that it will also always drop first and I don’t know how to add the second one without having a similar problem.

    Bricks bs;
    if(bs = collision.gameObject.GetComponent<Bricks>())
    { 
            
            if (GameObject.FindGameObjectWithTag("Ball") != null || GameObject.FindGameObjectWithTag ("secondBall") !=null)
            {
                Instantiate(powerups[Random.Range(0, powerups.Length)], collision.transform.position, Quaternion.identity);
            }
        if (GameObject.FindGameObjectWithTag("Ball") == null && GameObject.FindGameObjectWithTag("secondBall") == null)
        {
            Instantiate(powerup);
        }

    }

thanks :smiley:

I just replied it and the post disappeared use gameObject.tag see this documentation *if it helps please give it alike means a lot: Unity - Scripting API: GameObject.tag