Your logic doesn't make any sense... you're comparing $true to $exc, but $true is defined in the foreach() structure as the variable used to contain each item in the array in the loop.
In other words, if $exec was the tuple (1,2,3), you're checking if 1 is equal to (1, 2, 3), and if 2 is equal to (1, 2, 3), and if 3 is equal to (1, 2, 3).