Trouble with Arrays to control LEDs

When do you ever turn off the LEDs?
You need an else clause on that if to turn them off.