#291 - slice function will not crash if keep_key is not in the hash