Changed documentation for `yieldIf` to use foreach style