public function prev($t) { if ($t !== NULL) { array_push($this->back, $t); } return empty($this->front) ? NULL : array_pop($this->front); }