public function getRpAttributes()
    {
        $result = [];
        $rpm = $this->model->relatedPropertiesModel;

        if ($attributes = $this->visibleRpAttributes)
        {
            foreach ($attributes as $attribute)
            {
                if (!$this->visible_only_has_values)
                {
                    $result[] = $attribute;
                    continue;
                }

                $value = $rpm->getSmartAttribute($attribute);
                if ($value)
                {
                    $result[$attribute] = $value;
                    continue;
                }
            }
        }

        return $result;
    }