Moving merge_hashes file to the correct location. Issue #8
moving array check to top