Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -128,7 +128,7 @@ public class MerchantCategoryModel: NSObject { | ... | @@ -128,7 +128,7 @@ public class MerchantCategoryModel: NSObject { |
128 | 128 | ||
129 | /// Check if this category has child categories | 129 | /// Check if this category has child categories |
130 | public var hasChildren: Bool { | 130 | public var hasChildren: Bool { |
131 | - return !self.children.isEmpty | 131 | + return !(self.children ?? []).isEmpty |
132 | } | 132 | } |
133 | } | 133 | } |
134 | 134 | ... | ... |
-
Please register or login to post a comment