Check if relation is in whitelist

The 'visible' array is checked if the key of the relation exists in it.