If I run the following code in a Playground, it correctly prints out "here 1" However, if I run the code in my app using from a class function, it prints out "here". How do I correctly test if I have an array saved?
if let savedArray = UserDefaults.standard.object(forKey: "MyKey") {
print("here")
}
else {
print("here 1")
}