Check if property 'unique' exists, before trying to remove.

To avoid an exception, just checking the "unique" property before trying to remove it.