Cleaned up unnecessary parentheses in foreach loops