@civanch - did you confirm that this hasattr statement works? (I don't think it does)