How Do I Get Meshrenderer To Give Me Its Correct State?

i want the Xrow[0] to be false when MeshRenderer in _square[0] is off.
and true when the MeshRenderer is on

public class something : MonoBehaviour
{
  private bool[] Xrow = new bool[3];

  [SerializeField] private GameObject[] _square;


    void Update()
    {
     Xrow[0] =_square[0].GetComponent<MeshRenderer>();
        Debug.Log(Xrow[0]);
    }
}

You can tell if the MeshRenderer’s GameObject is active or not with activeInHierarchy. If you’re only toggling the MeshRenderer on and off, then you can use the component’s enabled.