Return 0 when illum cycles not found (empty array)
Fixed typo and enabled decision for DB access