add method hasDefaultExtension