/**
  * @param EiTestSetBlockStack $stack
  * @return bool
  */
 public function elementExists(EiTestSetBlockStack $stack)
 {
     $query = $this->createQuery("q")->andWhere("q.ei_test_set_id = ?", $stack->getEiTestSetId())->andWhere("q.path = ?", $stack->getPath())->andWhere("q.part_index = ?", $stack->getPartIndex())->andWhere("q.executed = ?", true);
     return $query->execute()->count() > 0;
 }