protect against empty contents