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

Anyone?