Returns whether this element has any constraints.
public function hasConstraints() : bool { return \count($this->constraints) > 0; }