how check all bool in GameObject list is true?


i was try to check if all bool in GameObject list is true and if all true DonePuzzle = true

    public GameObject[] AllCheck;   for (int i = 0; i < AllCheck.Length; i++)            {              if(AllCheck[i].GetComponent<SensoirLight>().RayActive == true)             {                  DonePuzzle = true;               }            } 

but its not working I do not have knowledge of Linq !

Thank you