model->getAddressForGeolocation(); if (!$address) { $this->model->destroyCoordinate(); return; } $coordinate = $address->getCoordinate(); if (!$coordinate) { return; } $this->model->fillCoordinate($coordinate); } }