Improve an if statement
Improve an if statement


Former-commit-id: e97245cf6cf618710749bd8db2c0cabbc6c75dbb [formerly e97245cf6cf618710749bd8db2c0cabbc6c75dbb [formerly 300e2dee74db46e211a2efb6f2550a6cf57f1f69]]
Former-commit-id: 7ea677ceb322dbec4f16277232531fae4c1e1f47
Former-commit-id: 56148278ecc6b7f0640c9a63e88bc9d692440f4f
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine