Add backwards compatibility for has_extension