Added isUdef(). Resolves #1