null and empty contents are checked.