Ok, let's put all brackets for the sake of standard, + unfold the typedef, + change all left handed comparisons to right handed, and rename checkModuleConnections() to destroyDisconnectedFacilities()