Add new $if function to hrResource.

* $if can be used to check if link relation is linked or embedded.