/** * @param string $version */ public function isAppliedVersion($version) { $where = "{$this->systemColumn} = ? AND {$this->versionColumn} = ?"; $whereValues = array($this->system, $version); return $this->query->exists($this->versionTable, $where, $whereValues); }