This should raise if neither of those is present, and should probably raise if additional keys are present.