Although I would change it to just be if (id.equals....) return true and a return false outside the for loop