Check optional and default parameter globally instead of in type.