As the answer notes, the assumption in your question - that line 22 is irrelevant because of line 18 - is incorrect: line 22 is still parsed before any of the code is executed, thus the exit in line 18 does not prevent an error in line 22 from causing problems.
You might have guessed that your assumptions were dubious by observing that PHP did, in fact, generate an error for line 22.
In any case, if someone - particularly someone with over 300 posts in the php tag - takes the time to point out an omission in your question, it's probably a good idea to humor them; there's at least a slim chance they might actually know what they're talking about.
As for whether your question is "good" or "bad"... The guidance for downvoting doesn't recommend abstract value judgements such as this; instead it recommends downvoting when a question "does not show any research effort; it is unclear or not useful". To avoid writing a question that falls into these categories, spend some time searching Stack Overflow for aspects of your question before posting it, and be specific in your question as to what you found and how it failed to help you. You might have noticed that we have an extensive guide to parse errors - if it didn't address your concern, then noting that in your question would go a long way toward helping readers understand where your confusion lies.