public static function addPageTypesToPage($page_id = null, array $types)
    {
        if (is_null($page_id)) {
            return false;
        }

        PageManager::deletePageTypes($page_id);

        foreach ($types as $type) {
            Symphony::Database()->insert(
                array(
                    'page_id' => $page_id,
                    'type' => $type
                ),
                'tbl_pages_types'
            );
        }

        return true;
    }