SyntaxFix
Write A Post
Hire A Developer
Questions
Simply use if ($web). This is true if the variable has any truthy value.
if ($web)
true
You don't need isset or empty since you know the variable exists, since you have just set it in the previous line.
isset
empty