I could not use `find` because find would return the `entry` and not the `spec`. However I refactor the code a bit, and i am using a break to optimize this code, as you suggested.
thanks