[Misc] Apply SonarCloud rule cpp:S5502
SonarCloud rule fix
- Rule name: Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.
- Rule code: cpp:S5502
- Rule link: https://sonarcloud.io/project/issues?open=AYjy1BWhx-2o8nUjJdYT&id=cern-cta_CTA