Check if handleAttr is defined