Replace is_null with isset

To prevent php errors