protected function isNested($rule)
    {
        if (isset($rule->rules) && is_array($rule->rules) && count($rule->rules) > 0) {
            return true;
        }

        return false;
    }
protected function isNested($rule)
    {
        if (isset($rule->rules) && is_array($rule->rules) && count($rule->rules) > 0) {
            return true;
        }

        return false;
    }
protected function isNested ( $ rule ) { if ( isset ( $ rule -> rules ) && is_array ( $ rule -> rules ) && count ( $ rule -> rules ) > 0 ) { return true ; } return false ; }
Determine if we have nested rules to evaluate.

@param  $rule

@return bool
Determine if we have nested rules to evaluate .