Agreed, I will just remove the check, as assert() seems not be used in other cases.