additional safety checks for empty keys