Why not use `if (sources.isEmpty)...`?