Changed allKeys() to return an empty array instead of NULL if the disctionary exists but is empty.