Please put the size comparison before the content comparison. Clearly, if the sizes don't compare, the content can't possibly be right (and so doesn't have to be checked.)