SyntaxFix
Write A Post
Hire A Developer
Questions
Why not just simplify it to if($_GET['id']). It will return true or false depending on status of the parameter's existence.