Yeah, I can move this check into the VulnerabilityFunction constructor. But I still would like to raise an exception here; that way, I can test for this case.