protected function fetchFromArray(
        array $array,
        string $index = '',
        $xss_clean = false
    ) {
        if (!array_key_exists($index, $array)) {
            return false;
        }

        // Checks to see if the variable is set, since 0 returns as false.
        if ($xss_clean === 'isset') {
            return array_key_exists($index, $array);
        }

        return $array[$index];
    }
protected function fetchFromArray(
        array $array,
        string $index = '',
        $xss_clean = false
    ) {
        if (!array_key_exists($index, $array)) {
            return false;
        }

        // Checks to see if the variable is set, since 0 returns as false.
        if ($xss_clean === 'isset') {
            return array_key_exists($index, $array);
        }

        return $array[$index];
    }
protected function fetchFromArray ( array $ array , string $ index = '' , $ xss_clean = false ) { if ( ! array_key_exists ( $ index , $ array ) ) { return false ; } // Checks to see if the variable is set, since 0 returns as false. if ( $ xss_clean === 'isset' ) { return array_key_exists ( $ index , $ array ) ; } return $ array [ $ index ] ; }
The function that will handle getting the data from the arrays.

@param mixed   $array     The array that will pulled from.
@param string  $index     What we are looking for.
@param boolean $xss_clean Whether to clean it or not or not. Incomplete.

@since  1.0.0
@return mixed
The function that will handle getting the data from the arrays .