Why ist the check with "in" and .end/.duration needed?