public function eq($num) { $oldStack = $this->elements; $this->elementsBackup = $this->elements; $this->elements = array(); if (isset($oldStack[$num])) { $this->elements[] = $oldStack[$num]; } return $this->newInstance(); }