Hide image and text on dynamic page if there's no input in database

Sorry, I’ve looked for that but couldn’t find the answer.