Check if the resource has data before test against it