adds `hasResource` as an option