can you throw `AssertionError` here explicitly so we get this check also if we disable assertions?