Added has() to check for existence of extension.