Change helpers to test for available methods than to use getattr()