public function isModularityPage()
    {
        global $current_screen;

        $result = true;

        if (strpos($current_screen->id, 'modularity') === false
            && strpos($current_screen->id, 'mod-') === false
            && ($current_screen->action != 'add'
                && (
                    isset($_GET['action'])
                    && $_GET['action'] != 'edit')
                )
            && $current_screen->base != 'post'
            && $current_screen->base != 'widgets') {
            $result = false;
        }

        return $result;
    }