public function is_serial() { if (isset($this->isSerial)) { return $this->isSerial; } return $this->isSerial = (bool) preg_match('|href="/title/tt\\d{7}/episodes\\?|i', $this->getPage("Title")); }