added method_exist check in YdDefaultAttributesBehavior