`if (_.isEmpty(resources)) {`