I don't know how many times the code goes on this path. If the answer is several times we could move this method to compare outside in order not to create this one several times. Depending on how it is executed...