Added explicit check on whether the retrieved values within explodeKey() can be iterated over.