Simplify assert, use value passed in