Simplify loop with range
Use each in keys, so we don't neet another has check