$boolean = $object->isNull();

The isNull() method tests to see whether the object is present in the repository.

TRUE means that the object is not present. FALSE means it is present.