Refined the check
Refined the check


Former-commit-id: b0c3b96c269dbb59176270ad2d46f8afb0f989c0 [formerly d1e0c24ab91480cf022218db91e9f9ebb4cf8d47]
Former-commit-id: c4dd510d59678d1679f82c5334ccb4ce796f27e7
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine