This line already checks if the Obj is a conditional button. Because you are casting that obj into a conditional button, the if statement will only complete if that obj is a conditional button.
if (Condition_Button := conditional_button_device[Obj]):
So there is no need to do this
if (Condition_Button:conditional_button_deviceconditional_10_1:conditional_button_device):
which doesn’t exist btw