Guard against empty resource
WIP