header_merge() as a proper class method