Validate scalar type first and not last because it will check if the value is None early and that will avoid the scalar type check.