original_string: protected function hasNotFailedPreviousRuleIfPresenceRule($rule, $attribute)
      {
          return in_array($rule, ['Unique', 'Exists']) ? ! $this->messages->has($attribute) : true;
      }
code: protected function hasNotFailedPreviousRuleIfPresenceRule($rule, $attribute)
      {
          return in_array($rule, ['Unique', 'Exists']) ? ! $this->messages->has($attribute) : true;
      }
code_tokens: protected function hasNotFailedPreviousRuleIfPresenceRule ( $ rule , $ attribute ) { return in_array ( $ rule , [ 'Unique' , 'Exists' ] ) ? ! $ this -> messages -> has ( $ attribute ) : true ; }
docstring: Determine if it's a necessary presence validation.
  
  This is to avoid possible database type comparison errors.
  
  @param  string  $rule
  @param  string  $attribute
  @return bool
docstring_tokens: Determine if it s a necessary presence validation .