New function `swcCheckData()` that checks the commune data for consistency