public static function where(
        $array,
        $field,
        ?string $operator = null,
        $value = null,
        bool $strict = false,
        bool $keepKey = false
    ): array {
        if (is_string($field)) {
            $operator = $operator === '=' ? '' : $operator;

            $query = [$field . rtrim(' ' . $operator) => $value];
        } elseif (is_array($field)) {
            $query = $field;
        } else {
            throw new \InvalidArgumentException('Where query must br array or string.');
        }

        return ArrayHelper::query($array, $query, $strict, $keepKey);
    }