The "if" above checks the protected variable directly then the getter is called. To be fully coherent I'd go for 

```php

$email = $this->getEmail();
if ($email !== null)
{
   $url .= '/'   . md5($email)
}
```