PR for code review

Its better to have an early return statement here. Once we found a match, we should return true immediately instead of looping through the list.

For this, you can remove boolean isExists variable. Just use return true inside the if statement and return false outside the for-each loop