Remove unnecessary brackets from variables, add square brackets to if statements.
Remove unnecessary brackets from variables, add square brackets to if statements.


Former-commit-id: 40f39b60c84bef1f93ac7b41bcf9318cf85e4e20
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox