         else {
             return defaultValue
         }
-        
-        return intValue
-    }
-    public func array(forKey keyName: String, defaultValue:Array<Any>? = Array<Any>()) -> Array<Any>? {
+        if let val = intValue as Int? {
+            return val
+        } else {
+            return defaultValue
+        }
+    }
+    public func array(forKey keyName: String, defaultValue:Array<Any>) -> Array<Any> {
         let keychainData: Data? = self.getData(forKey: keyName)
         var arrayValue: Array<Any>?
         if let data = keychainData {

        return false
    }
    // MARK: Getting Values
    public func string(forKey keyName: String, defaultValue:String? = "") -> String? {
        let keychainData: Data? = self.getData(forKey: keyName)
        var stringValue: String?
        if let data = keychainData {

        else {
            return defaultValue
        }
        if let val = boolValue as Bool? {
            return val
        } else {
            return defaultValue
        }
    }
    public func integer(forKey keyName: String, defaultValue:Int) -> Int {
        let keychainData: Data? = self.getData(forKey: keyName)
        var intValue: Int?
        if let data = keychainData {
