private function doesPageExists(&$title) { $a = StubManager::getArticle($title); if (is_object($a)) { $id = $a->getID(); } else { $id = 0; } return $id == 0 ? false : true; }