Break loop if is_true was set to false in If