Prevent Circular lookup on frontend

https://github.com/symphonycms/selectbox_link_field/issues/38

When an entry is linked to itself using SBL a circular lookup happens on the frontend and page never renders.

Is the submitted code correctly referencing the array correctly? not 100% sure if this is correct, but could someone take a look at it?