added isExtension method