Getting undefined color in shader to return null

Is it possible to get an undefined shader property to return null? For example, color in (built-in shader) mobile diffuse?

When I check for not null in a property that doesn’t exist, it always goes right through. Null is apparently not returned. When I then try assigning something that shouldn’t have, say, color null or undefined, I get this error:

Material doesn’t have a color property ‘_Color’

You can use HasProperty:

http://docs.unity3d.com/Documentation/ScriptReference/Material.HasProperty.html