I'd place here a check to call create_resources only if the rules hash is not empty