a quick way to check if all 6 buttons have the same sprite

In the case of tic tac toe, you can simply check
if button [1].getcomponent ().sprite == ☆ && if button [2]… for the three sprites to make a win condition.
What if i am checking 6 buttons images?
Is there a better way instead of a long if ( " && " && " &&" …etc.

Code not tested.

private bool AllButtonsShareSameSprite( params Button[] buttons )
{
    Sprite sprite = (buttons[0].targetGraphic as Image).sprite;
    for(int i = 1 ; i < buttons.Length ; ++i)
    {
        if((buttons*.targetGraphic as Image).sprite != sprite)*

return false;
}
return true;
}
Then call it like this: if(AllButtonsShareSameSprite(button)) // Do something