public function somfunc($args1) { if ($this->rpc !== null) { return $this->rpc->call('CheckinBook/' . __FUNCTION__, array($withBonus, $userOrAccountId)); } else { } }