How to check if a collider active or not

so i got a gameobject attached with 3 child(at1, at2, at3) which are hitboxes of a weapon, yet the damage of each moveset are different, so i have to know whether the collider is active or not.

the easiest way is to create 3 different script and attached to that child but i dont really want to reuse the code again and again

Active / Not Active

if(GetComponent<Collider>()){
    // Active
}else{
    // Not Active
}

Enabled / Disabled

if(GetComponent<Collider>().enabled){
    // Enabled
}else{
    // Disabled
}

sometimes the cause of collision failure is at the frame rate. To prevent this, use RaycastHit to check the element between the position of the collision in the previous frame and the position of the collision in the current frame each time.,sometimes the cause of collision failure is at the frame rate. To prevent this, use RaycastHit to check the element between the position of the collision in the previous frame and the position of the collision in the current frame each time.

Maybe