public function execute() { $response = array(); $result = Api_Bo_Payments::getSubscriptionsByUidNid($this->uid, $this->nid); if (count($result) == 0) { $response['result'] = ''; } else { $response['subscriptions'] = $result; } return $response; }