diff --git a/index.js b/index.js
index 7def896b018fafee60d37af8741c11eedcc6f639..4e297a771d78923d974da342498f4b16204ba613 100644
--- a/index.js
+++ b/index.js
@@ -539,7 +539,7 @@ async function agregateMonthAndYearData(data) {
  * @returns {boolean}
  */
 function isFirstStart(account) {
-  if (account?.data?.consentId) {
+  if (account && account.data && account.data.consentId) {
     log('info', 'Konnector not first start')
     return false
   }