Your hasattr logic was missing from my codebase