prevent empty keys from throwing an error