Isn't `extension_loaded` more appropriate?