/** * Check if entity exists in source * * @return bool */ public function exists() { try { $sql = SQL::tableExists($this->entity->name); return $this->execute($sql); } catch (\PDOException $e) { return false; } }