Unused method hasExtension() was deleted