Revert "simplify if statement"
Revert "simplify if statement"

This reverts commit 552b8d5e8fc502345c1db3d23356408768b72abb.

codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client