foreach_2
foreach loop nested in if statement