using a break to stop the foreach on header