> The if directive is tricky to use, especially in location{} blocks. It often doesn’t do what you expect and can even cause segfaults.
That's not user error. That's lazy programming and a bug. If your code segfaults because of user input you weren't expecting, that's on you as a programmer.