unset referenced value in foreach loop