Equivalent to `optionsOrFunction.if`