If you have a string which might be null it won't be null anymore after you do a stripslashes.
$s = null;
$r = stripslashes($s);
if ($r == "") echo "this is the result";
if (is_null($r)) echo "instead of this";
It took me some time to figure this out it might safe you some time.
stripos