if (isset($variable)) { /* do something */ };
if(isset($_GET['id'])) { $slide = $_GET['id'] // Getting parameter value inside PHP variable }