oops this slipped through my earlier patch to remove isTriviallyInvalid