More concise isResource.