<?php
namespace Newland\NeosViewHelpers\ViewHelpers\Type;

/*
 * This file is part of the "neos-viewhelpers" package.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 */

use Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper;

/**
 * Is array view helper.
 *
 * Checks if a given value is of type array.
 */
class IsArrayViewHelper extends AbstractViewHelper
{
    /**
     * Main method.
     *
     * @param mixed $value      The value to check.
     * @return bool
     */
    public function render($value = null): bool
    {
        return is_array($value);
    }
}
