Updated hasValue to exists, to comply with latest version of the CompositeDBField interface

This fixes template bug where you can't use if:
`<% if MyLink %>`