Multiple linecasts question

Hey,

I have a projectile with two linecasts, i want to perform an action when one of them hit for example, is there a simple way to check if any of the linecasts hit or do i have to check them individually like:

if(ray1.collider != null || ray2.collider != null)
{
    //do something
}

It seems messy, what if i had a dozen of casts, i’m sure there is a better way to do this.

The loop approach from this thread worked perfectly, thanks!