returns false if loop is broken, true otherwise