The function checks, whether the resource name is the same as passed to the function. The function returns true ( YES ), when the names are identical and false ( NO ) otherwise.