So, move the if statement out a level:
```php
<?php if($this->_customer && isset($this->_customer['id'])):?>
  "customer": {