Check if this result has any errors. If $name is supplied, only
check for errors on that row. Otherwise, check all rows.

@param  null|string $name The name of the row, if supplied
@return bool
483768
public function hasErrors($name = null)
    {
        if (!$name) {
            return !empty($this->errors);
        }

        return isset($this->errors[$name]);
    }
863339
public function has($name):bool
    {
        return ((isset($this->session[$name]) && null != $this->session[$name])? true : false);
    }
1244635
public function error(string $name = '', bool $first = false)
    {
        $errors = $this->errors();

        if (empty($name)) {
            $name = $this->getName();
        }

        if ($first) {
            return $errors->first($name);
        }

        return $errors->get($name);
    }
746089
public function offsetExists($name)
    {
        $name = strtolower($name);
        if (!array_key_exists($name, $this->_data)) {
            return false;
        }
        return !empty($this->_data[$name]->value());
    }
219286
public function hasValidator($name)
    {
        $method = 'validation' . ucfirst($name);
        if ($this->validationMethodExists($method)) {
            return true;
        }

        return isset($this->_validators[$name]);
    }
1000817
public function hasNotEmptyAggregation(string $name): bool
    {
        if (is_null($this->aggregations)) {
            return false;
        }

        return $this
            ->aggregations
            ->hasNotEmptyAggregation($name);
    }
223688
public function getResult($name=NULL) {
		if($name === NULL) {
				# An array is always copied
			return $this->response_result;
		}

		if(is_array($this->response_result) && isset($this->response_result[$name])) {
			return $this->response_result[$name];
		}

		return NULL;
	}
354338
public function has($name)
    {
        return isset($this->data[$name]) && !in_array($this->data[$name], ['', null, false, array()], true);
    }
1084661
public function hasError()
	{
		if( isset( $this->info['error'] ) )
			return ( empty( $this->info['error'] ) ? NULL : $this->info['error'] );
		else
			return NULL;
	}
1029687
public function check($name) {
        // is in cache?
        if(isset($this->cache[$name]))
            return true;

        return $this->cookies->has($name);
    }
1112807
public function has(string $name) : bool
  {
    if (isset($this->all[$name])) return true;
    return false;
  }
1082980
public function getRows($name)
  {
    if(isset($this->_rows[$name]))
      return $this->_rows[$name];
    else
      return false;
  }
90127
public function has($name)
    {
        $value = $this->get($name);

        return isset($value) ? $value : false;
    }
536766
public function __isset($name) {
        if(isset($this->tmp[$name])) {
            return true;
        }
        if (method_exists($this, '_' . $name)) {
            return true;
        }
        if (isset($this->row[$name])) { //array_key_exists($name, $this->_row)
            return true;
        }
        if(isset($this->stack[$name])){
            $this->row = &$this->stack;
            return true;
        }
        return false;
    }
795057
private function isValidShortClassName(string $name): bool
    {
        return empty($name) === false && preg_match(static::VALID_CLASS_NAME_REGEX, $name) === 1;
    }
1296896
public function getErrors($name = null)
    {
        if (!$name) {
            $errors = array();
            //flatten the errors array into a single array
            array_walk_recursive($this->errors, function ($error) use (&$errors) {
                    $errors[] = $error;
                }
            );

            return $errors;
        }

        return isset($this->errors[$name]) ? $this->errors[$name] : array();
    }
435867
public function iSeeRole( $name )
    {
        $role = $this->getRoleManager()->getRole( $name );
        Assertion::assertNotNull(
            $role,
            "Couldn't find Role with name $name"
        );
    }