GetCustomInfoValue, what if custom property doesnt exist?

variable = swPart.GetCustomInfoValue("", "Item")

If the custom property doesnt exist, I get an error.  How can I continue the macro if it doesnt exist?  If it doesnt exist, I want the user to assign one.

SolidworksApi macros