src/Rules/Json/JsonPathExistsRule.php
private function checkRelation($relation, $expected, $current)
    {
        switch ($relation) {
            case 'equals':
                if ($expected !== $current) {
                    return false;
                }
                break;
            case 'less than':
                if ($expected <= $current) {
                    return false;
                }
                break;
            case 'greater than':
                if ($expected >= $current) {
                    return false;
                }
                break;
        }

        return true;
    }
private function checkRelation($relation, $expected, $current)
    {
        switch ($relation) {
            case 'equals':
                if ($expected !== $current) {
                    return false;
                }
                break;
            case 'less than':
                if ($expected <= $current) {
                    return false;
                }
                break;
            case 'greater than':
                if ($expected >= $current) {
                    return false;
                }
                break;
        }

        return true;
    }
@param $relation string
@param $value int
@param $count int

@return bool