catching scenario of empty keys

for providing more relevant feedback