<?php

$id = isset($_GET['id']) ? (int) $_GET['id'] : 0;

if ( empty($id) )
{
    echo 'Böyle bir içerik yok';
}
else
{
    işlemler..
}