Finds whether a variable is a resource