registerArgument('haystack', 'array', 'haystack', true); $this->registerArgument('needle', 'mixed', 'needle', true); } protected static function evaluateCondition($arguments = null): bool { $array = $arguments['haystack']->toArray(); return in_array($arguments['needle'], $array); } }