Add backwards compatibility for has_extension
Merge pull request #2526 from clyonsEIS/3.1

Add backwards compatibility for has_extension