public function evaluate(FlowQuery $flowQuery, array $arguments) { $context = $flowQuery->getContext(); if (isset($context[0])) { $flowQuery->setContext([$context[0]]); } else { $flowQuery->setContext([]); } }