Move arrays verifications to own file