add a check for an empty resources list, just in case