Combine two if-statements with break into one.