Navigation: Simplify if-condition using typeof in hash processing demo