my %colors = map { $_ => 1 } qw(red green blue yellow); if (exists $colors{$bands[0]})