setContent($content) need is_resource check