public function has($name)
    {
        $name = self::normalizeName($name);

        if (strpos($name, '[') !== false) {
            $names = explode('[', str_replace(']', '', $name));
            $key = array_shift($names);
            $item = isset($this->parameters[$key]) ? $this->parameters[$key] : [];

            foreach ($names as $key) {
                if (!isset($item[$key])) {
                    return false;
                }

                $item = $item[$key];
            }

            return !empty($item);
        }

        return !empty($this->parameters[$name]);
    }
public function has($name)
    {
        $name = self::normalizeName($name);

        if (strpos($name, '[') !== false) {
            $names = explode('[', str_replace(']', '', $name));
            $key = array_shift($names);
            $item = isset($this->parameters[$key]) ? $this->parameters[$key] : [];

            foreach ($names as $key) {
                if (!isset($item[$key])) {
                    return false;
                }

                $item = $item[$key];
            }

            return !empty($item);
        }

        return !empty($this->parameters[$name]);
    }
public function has ( $ name ) { $ name = self :: normalizeName ( $ name ) ; if ( strpos ( $ name , '[' ) !== false ) { $ names = explode ( '[' , str_replace ( ']' , '' , $ name ) ) ; $ key = array_shift ( $ names ) ; $ item = isset ( $ this -> parameters [ $ key ] ) ? $ this -> parameters [ $ key ] : [ ] ; foreach ( $ names as $ key ) { if ( ! isset ( $ item [ $ key ] ) ) { return false ; } $ item = $ item [ $ key ] ; } return ! empty ( $ item ) ; } return ! empty ( $ this -> parameters [ $ name ] ) ; }
Check if a value exists and is not empty.

@param string $name

@return bool
Check if a value exists and is not empty .