Missing space after foreach, just like after if. Otherwise this looks good to me.