diff --git a/concrete/controllers/backend/page.php b/concrete/controllers/backend/page.php
index <HASH>..<HASH> 100644
--- a/concrete/controllers/backend/page.php
+++ b/concrete/controllers/backend/page.php
@@ -16,25 +16,21 @@ class Page extends Controller
     public function create($ptID, $parentID = false)
     {
         $pagetype = PageType::getByID(Loader::helper('security')->sanitizeInt($ptID));
-        if ($parentID) {
-            $parent = ConcretePage::getByID($parentID);
-        }
         if (is_object($pagetype)) {
             $proceed = false;
+            $parent = $parentID ? ConcretePage::getByID($parentID) : null;
             if (is_object($parent) && !$parent->isError()) {
                 $pp = new Permissions($parent);
                 $proceed = $pp->canAddSubCollection($pagetype);
             } else {
                 $ptp = new Permissions($pagetype);
                 $proceed = $ptp->canAddPageType();
-                if (isset($parent)) {
-                    unset($parent);
-                }
+                $parent = null;
             }
             if ($proceed) {
                 $pt = $pagetype->getPageTypeDefaultPageTemplateObject();
                 $d = $pagetype->createDraft($pt);
-                if (is_object($parent)) {
+                if ($parent !== null) {
                     $d->setPageDraftTargetParentPageID($parent->getCollectionID());
                 }
Avoid accessing undefined variable in page backend controller