Returns the optional flag that is true if the node is in the optional part of a chain expression
bool
public function getOptional() { return $this->optional; }