function checkHasData() { try { $dbCon = RingsideApiDbDatabase::getDatabaseConnection(); if ($dbCon === false) { return false; } $data = Api_Dao_App::getApplicationInfoByApiKey(RingsideWebConfig::$networkKey, RingsideSocialConfig::$apiKey, $dbCon); if ($data !== false) { return true; } else { return false; } } catch (Exception $exception) { return false; } }