add has_identity? and resource_ref? node functions