Checks if a POST parameter exists

@param string $name the parameter name
@param boolean $ignoreCase  to ignore the parameter name case sensitivity
@return boolean true if a parameter exists
423427
public function hasPostParamValue($name, $ignoreCase = false)
    {
        if ($ignoreCase)
        {
            $name = strtolower($name);
            foreach ($this->postParams as $key => $value)
            {
                if (strtolower($key) === $name)
                {
                    return true;
                }
            }
        }
        else
        {
            foreach ($this->postParams as $key => $value)
            {
                if ($key === $name)
                {
                    return true;
                }
            }
        }
        return false;
    }
148782
public function offsetExists($name)
    {
        deprecationWarning(
            'The ArrayAccess methods will be removed in 4.0.0.' .
            'Use getParam() instead.'
        );

        if ($name === 'url' || $name === 'data') {
            return true;
        }

        return isset($this->params[$name]);
    }
915884
public function checkField($name)
    {
        return (!in_array($name, $this->fields())) ?  $this->addFields([$name=>'string']) : true;
    }
1241349
public function hasArgument($name)
    {
        $arguments = is_numeric($name) ? array_values($this->arguments) : $this->arguments;

        return isset($arguments[$name]);
    }
384106
protected function hasParam($name) {
		if ($this->getDi()->get('dispatcher')->getParam($name, null, false)) {
			return true;
		}
		
		return false;
	}
1061454
public static function compare($str1, $str2, $ignoreCase = true)
    {
        if ($ignoreCase) {
            if (strcasecmp($str1, $str2) == 0) {
                return true;
            }
        } else {
            if (strcmp($str1, $str2) == 0) {
                return true;
            }
        }

        return false;
    }
1009242
public function hasArgument(string $name): bool
    {
        $this->parsePathArguments();
        return isset($this->arguments[$name]);
    }
55603
public function isNull($name): bool
    {
        if ($this->contains($name) == false) {
            return true;
        }

        $value = $this->record[$name];

        return ($value == null);
    }
1124796
public static function hasCustomfield($name = null)
    {

        $customfields = $this->getAssignedCustomfields();
        if (empty($customfields)) {
            return false;
        }
        foreach ($customfields as $customfield) {
            if ($customfield->getName() !== $name) {
                continue;
            }
            return true;
        }
        return false;
    }
504447
public function hasMethod($name)
    {
        try {
            $method = new ReflectionMethod($this, $name);
            if (!$method->isPublic()) {
                return false;
            }

            return $method->getDeclaringClass()->name !== 'Cake\Console\Shell';
        } catch (ReflectionException $e) {
            return false;
        }
    }
308653
public static function exists($name)
    {
        if (isset($_COOKIE[$name]) && !empty($_COOKIE[$name])) {
            return true;
        } else {
            return false;
        }
    }
1138433
protected function hasParameter(array $params, $name, $value = null)
    {
        $found = in_array($name, $params);
        if (is_null($value) || !$found) {
            return $found;
        }
        $paramValueIndex = array_search($name, $params) + 1;
        return isset($params[$paramValueIndex]) && ($params[$paramValueIndex] == $value);
    }
92595
public static function postBool($name, $default = null)
    {
        if (isset($_POST[$name]) && $_POST[$name] !== '') return self::parseInputToBool($_POST[$name]);
        return (is_null($default) ? null : ((bool)$default));
    }
216837
public function postParam($name){
        if(isset($this->postParams[$name])){
            return $this->postParams[$name];
        }else{
            return NULL;
        }
    }
702131
public function exists(string $name): bool
    {
        if ($this->processes->has($name)) {
            $process = $this->processes->get($name);
            if (Process::kill($process['pid'], 0) === false) {
                $this->processes->forget($name);
                $this->processStoreToFile();

                return false;
            }

            return true;
        }

        return false;
    }
999009
public function exists(string $name, $else = null)
    {
        return isset($this->items[$name]) ?
            $this->items[$name] : $else;
    }
1006807
public function addQueryParameter($name, $value)
    {
        if ($this->method === Utils::$METHOD_GET)
        {
            if (!$this->hasGetPostParamValue($name, true))
            {
                $this->addGetParameter($name, $value);
                return true;
            }
            else
            {
                return false;
            }
        }
        else if ($this->method === Utils::$METHOD_POST)
        {
            if (!$this->hasGetPostParamValue($name, true))
            {
                $this->addPostParameter($name, $value);
                return true;
            }
            else
            {
                return false;
            }
        }
        return null;
    }