public function isScheduledForInsert($document) { return isset($this->scheduledInserts[spl_object_hash($document)]); }