/** * Adds a subchain to the current chain that treats the value a an array. * Automatically adds the isArray validator. * * @param boolean $addFilter Add the Trim filter (removes empty elements) * @return \Jyxo\Input\Fluent */ public function walk(bool $addFilter = true) : self { $this->validate('isArray'); if (false != $addFilter) { $this->filter('trim'); } $this->chain = $this->chain->addWalk(); return $this; }