lib/ezutils/classes/ezini.php
function hasVariable( $blockName, $varName )
    {
        // 1. Check if the variable is set in either injected or regular settings.
        if (
            !isset( self::$injectedSettings[$this->FileName][$blockName][$varName] )
            && !isset( $this->BlockValues[$blockName][$varName] )
        )
        {
            return false;
        }

        // 2. Check if injected setting isn't strictly false (false being the default value when a variable doesn't exist).
        if (
            isset( self::$injectedSettings[$this->FileName][$blockName][$varName] )
            && self::$injectedSettings[$this->FileName][$blockName][$varName] === false
        )
        {
            return false;
        }

        return true;
    }
function hasVariable( $blockName, $varName )
    {
        // 1. Check if the variable is set in either injected or regular settings.
        if (
            !isset( self::$injectedSettings[$this->FileName][$blockName][$varName] )
            && !isset( $this->BlockValues[$blockName][$varName] )
        )
        {
            return false;
        }

        // 2. Check if injected setting isn't strictly false (false being the default value when a variable doesn't exist).
        if (
            isset( self::$injectedSettings[$this->FileName][$blockName][$varName] )
            && self::$injectedSettings[$this->FileName][$blockName][$varName] === false
        )
        {
            return false;
        }

        return true;
    }
function hasVariable ( $ blockName , $ varName ) { // 1. Check if the variable is set in either injected or regular settings. if ( ! isset ( self :: $ injectedSettings [ $ this -> FileName ] [ $ blockName ] [ $ varName ] ) && ! isset ( $ this -> BlockValues [ $ blockName ] [ $ varName ] ) ) { return false ; } // 2. Check if injected setting isn't strictly false (false being the default value when a variable doesn't exist). if ( isset ( self :: $ injectedSettings [ $ this -> FileName ] [ $ blockName ] [ $ varName ] ) && self :: $ injectedSettings [ $ this -> FileName ] [ $ blockName ] [ $ varName ] === false ) { return false ; } return true ; }
Checks if a variable is set.

@since 5.0 also checks in the injected settings
@param string $blockName
@param string $varName
@return bool
Checks if a variable is set .