Rename resource? to resource_defined?