check if databaseObject is null