break out of foreach object