<?php

namespace GriffinForms\Admin\App\Html\Widgets\PresentationArea;

class Format extends \GriffinForms\Admin\App\Html\Widgets\Format
{
    /**
     * Evaluates if a form theme is set and available with a valid ID.
     * Shared utility for theme validation across all presentation area classes.
     *
     * @param object|null $form_theme The theme object to evaluate
     * @return bool True if theme is set, valid object, and has ID > 0
     */
    protected function evaluateThemeSet($form_theme)
    {
        return isset($form_theme) && is_object($form_theme) && $form_theme->getProp('id') > 0;
    }
}