Also you could use this instead of @
if ($variable == null) {
echo "id not exsist"