check if caption is not empty