Improved the updateContent's empty content detection