if (!empty($poll_obj) && $poll_obj instanceof \XoopspollPoll) {

                /* check to see if user has rights to view the results */
                $vis_return = $poll_obj->isResultVisible();
                $isVisible  = (true === $vis_return) ? true : false;