file existence doesn't affect the extension check here