[#18] added booleans to asserts for clarity