Determine if a Relation is a Function