@param string $k

@return bool
517871
public function isSelected($k): bool
    {
        $res = (\is_array($this->selected) && \in_array($k, $this->selected, true)) || $k === $this->selected;

        return $res;
    }
648535
public function unregister($k)
	{
		if ( array_key_exists($k, $this->_items) )
		{
			$item = $this->_items[$k];
			unset($this->_items[$k]);
			return $item;
		}
		else
			return FALSE;
	}
381311
public function has($key){
        if($this->offsetExists($key) && (bool)$this->offsetGet($key)){
            return TRUE;
        }
        return FALSE;
    }
1203561
public function get($k)
	{
		if ( !property_exists($this->_object, $k) )
			throw new \Exception("Config value '$k' does not exist");

		return $this->_object->{$k};
	}
1070890
public function get($k)
	{
		if ( array_key_exists($k, $this->_items) )
			return $this->_items[$k];
		else
			return FALSE;
	}
400689
public function has(string $key): bool
    {
        return array_key_exists(strtolower($key), $this->keyMap) &&
            array_key_exists($this->keyMap[strtolower($key)], $this->collection);
    }
720766
public function has($key)
    {
        // For performance, we can use isset,
        // but it will not match if value == 0
        return isset($this->values[$key]) || array_key_exists($key, $this->values);
    }
112762
public function pmf(int $k): float
    {
        Support::checkLimits(self::SUPPORT_LIMITS, ['k' => $k]);

        if ($k === 0) {
            return $this->q;
        } else {
            return $this->p;
        }
    }
1281462
public static function ksortRecursive(&$array)
    {
        if (!is_array($array)) {
            return false;
        }

        ksort($array);
        foreach ($array as $key => $value) {
            static::ksortRecursive($array[$key]);
        }

        return true;
    }
1249582
public function is($key) {
        $code = $this->current()->getCode();

        return ($code === $key || $this->canonicalize($code) === $key);
    }
1014555
public function hasByKey($key) {
		$nullValue = ClassHelper::createObject(NullValue::class);
		$value = $this->getByKey($key, $nullValue);
		if($value instanceof NullValue) {
			return false;
		}
		return true;
	}
377466
public function isLast($key)
	{
		if ($this->rows && $this->count())
		{
			return $key == array_slice($this->rows, -1, 1)[0]->getPkValue();
		}

		return false;
	}
1179362
public function has($key)
    {
        $keys = explode('.', $key);
        $cKeys = count($keys);
        $config = $this->_arr;

        for ($i = 0; $i < $cKeys; ++$i) {
            if (is_array($config)) {
                if (array_key_exists($keys[$i], $config)) {
                    $config = $config[$keys[$i]];
                } else {
                    return false;
                }
            } else {
                return false;
            }
        }

        return true;
    }
1092046
public function member($key)
    {
        foreach ($this->value as $innerKey => $value) {
            if ($key === $innerKey) {
                return true;
            }
        }

        return false;
    }
1106990
public function has($key)
    {
        /*
         * Version >= 4.0 of phpredis returns an integer instead of bool
         */
        $check = $this->redis->exists($this->decorateKey($key));

        if (is_bool($check)) {
            return $check;
        }

        return $check > 0;
    }
624368
function kv($map=null){
        $filed = $this->fields;
        $map = $map?:$filed;
        $filed = explode(',',$map);
        switch(count($filed)) {
            case 0:
            case 1:
                !$filed[0] and new \Exception('fetchKv cat`t fields is null');
                $k = null;//$filed[0];
                $v = $filed[0];
                $this->fields = $v;//'*';
                break;
            case 2:
                $k = $filed[0];
                if($filed[1]=='*') {
                    $v = null;
                    $this->fields = '*';
                }
                else {
                    $v = $filed[1];
                }
                break;
            default:
                $k = $filed[0];
                $v = null;
                $this->fields = $map;
                break;
        }
        $result = $this->query()->fetchAll(PDO::FETCH_ASSOC);

        if($result) {
            $result = array_column($result, $v, $k);
            $result = $this->_data($result,false);
        }
        return $result;
    }
454016
public function hasKey($key)
    {
        if (array_key_exists($key, $this->data)) {
            return true;
        }

        $entity = $this->getEntity();
        if ($entity->getRepository()->getCache()->tableHasField($entity->getTable(), $key)) {
            return true;
        }

        if ($entity->getRepository()->getCache()->tableHasField($entity->getTable() . '_i18n', $key)) {
            return true;
        }

        return false;
    }