I have an array of dictionaries of *table* 

```
let table: [
              "0": ["a": "30","b": "21"],
              "1": ["a": "31","b": "22"],
              "2": ["a": "32","b": "23"],
              "3": ["a": "33","b": "24"],
              "4": ["a": "34","b": "24"],
            ]

```

So, I would like to loop through each of the keys (which will always be of type Int (Generally it is displaying indexpath)). Can I loop through those keys?

Like:

```
var keys:Int = 0
// Iterate through the dictionary
for (key) in tblData {
    //What should i check for here?? 
}

```

**Solution:**
I was able to get it with all of your suggestions, So thank you everyone guys. I did the following to check whether the dictionary key is either a Int and whether it is available or not but I still can't break the loop:

```
let keys = (demo["data"]!["table"]!.keys).sort()

 for k in keys{
   var num = Int(k)
   if num != nil {
     print("Yeah! its an Integer")
   }
   else {
    print("uh-oh! not an Integer")
  }
}

```

But I'm still not able to break the loop. Where should I use the break and what should be the condition. can anyone please suggest me?

**Swift version: 2.3, 
Xcode version: 7.3**