Fixing php notices when content is not set