in reply to Remove array if data inconsistent

How is this file generated? I would suggest that depending on how these "inconsistent" records are generated and their relative abundance, you may want to spit out an error message instead of dropping data. Specifically, if these are the results of a human data entry failure, quietly dropping records may be counter-productive.