Removing from the input arrays all the elements with non-valid keys.