Params check in key constructor