Remove array item in foreach loop