original_string: protected function hasRecipient($address, $name = null, $property = 'to')
      {
          $expected = $this->normalizeRecipient(
              $this->addressesToArray($address, $name)[0]
          );
  
          $expected = [
              'name' => $expected->name ?? null,
              'address' => $expected->email,
          ];
  
          return collect($this->{$property})->contains(function ($actual) use ($expected) {
              if (! isset($expected['name'])) {
                  return $actual['address'] == $expected['address'];
              }
  
              return $actual == $expected;
          });
      }
code: protected function hasRecipient($address, $name = null, $property = 'to')
      {
          $expected = $this->normalizeRecipient(
              $this->addressesToArray($address, $name)[0]
          );
  
          $expected = [
              'name' => $expected->name ?? null,
              'address' => $expected->email,
          ];
  
          return collect($this->{$property})->contains(function ($actual) use ($expected) {
              if (! isset($expected['name'])) {
                  return $actual['address'] == $expected['address'];
              }
  
              return $actual == $expected;
          });
      }
code_tokens: protected function hasRecipient ( $ address , $ name = null , $ property = 'to' ) { $ expected = $ this -> normalizeRecipient ( $ this -> addressesToArray ( $ address , $ name ) [ 0 ] ) ; $ expected = [ 'name' => $ expected -> name ?? null , 'address' => $ expected -> email , ] ; return collect ( $ this -> { $ property } ) -> contains ( function ( $ actual ) use ( $ expected ) { if ( ! isset ( $ expected [ 'name' ] ) ) { return $ actual [ 'address' ] == $ expected [ 'address' ] ; } return $ actual == $ expected ; } ) ; }
docstring: Determine if the given recipient is set on the mailable.
  
  @param  object|array|string  $address
  @param  string|null  $name
  @param  string  $property
  @return bool
docstring_tokens: Determine if the given recipient is set on the mailable .