This could be for educational purposes but Ricks code is unnecessary complicated in the beginning. If you just store the laser as a Particlesystem and not a Gameobject you can just write
foreach (ParticleSystem laser in lasers)
{
var emission = laser.emission;
emission.enabled = false;
}