Use `hasattr` instead.