public function assertNumber($value) { if ($value[0] != "number") { $this->throwError("expecting number"); } return $value[1]; }