check for content before treating it as an object.