function isPageExcluded(\PageAttachment\Session\Page $page)
 {
     global $wgPageAttachment_excludedPages;
     if (isset($wgPageAttachment_excludedPages) && is_array($wgPageAttachment_excludedPages)) {
         if ($page->getNameSpacePrefix() == '') {
             $pageTitle = $page->getPageTitle();
         } else {
             $pageTitle = $page->getNameSpacePrefix() . ':' . $page->getPageTitle();
         }
         if (in_array($pageTitle, $wgPageAttachment_excludedPages)) {
             return true;
         }
     }
     return false;
 }