         // Notify user that the files are generated!
         let notification: NSUserNotification = NSUserNotification()
         notification.title = "SwiftyJSONAccelerator"
-        notification.subtitle = "Completed - \(name).swift"
+        if name.characters.count > 0 {
+            notification.subtitle = "Completed - \(name).swift"
+        } else {
+            notification.subtitle = "No files were generated, cannot model arrays inside arrays."
+        }
         NSUserNotificationCenter.defaultUserNotificationCenter().deliverNotification(notification)
-
     }
 
     //MARK: Internal methods

            // Write everything to the file at the path.
            writeToFile(className, content: content, path: filePath)

        }

        return className


            }

            // Get an instance of the template.
            var content: String = templateContent()

