public function isLoaded() { return $this->collection !== null || !empty($this->toAdd) || !empty($this->toRemove) || !empty($this->added) || !empty($this->removed); }