Function Ref.isNull

returns true if object is not assigned

bool isNull() const @property;