private function hasEarlyTermination(array $statements, Scope $scope) : bool { foreach ($statements as $statement) { if ($this->hasStatementEarlyTermination($statement, $scope)) { return true; } } return false; }