Comment by jorams

5 hours ago

Something you'll see in real codebases is code that cares whether an input value is "empty", but it doesn't matter if it's null or an empty string. It's very easy to go for this:

    if ($input) {}

It'll work through every test case you try, and then someone enters a 0 into the field and it's also unexpectedly considered empty.