public static function getListPositonCssClass($key, array $arrList, $blnReturnAsArray = false)
    {
        $arrClasses = [];

        $idx = array_search($key, array_keys($arrList), true);

        if ($idx === false)
        {
            return $blnReturnAsArray ? $arrClasses : '';
        }

        if ($idx == 0)
        {
            $arrClasses[] = 'first';
        }

        $arrClasses[] = ($idx % 2 == 0) ? 'odd' : 'even';

        if ($idx + 1 == count($arrList))
        {
            $arrClasses[] = 'last';
        }

        return $blnReturnAsArray ? $arrClasses : implode(' ', $arrClasses);
    }