```php
if (!$ticket = $this->getTicket())
    return null;
```