Check User Attribute Data

Dear all,

How to check whether a element having any UserAttributeData or not?