Avoid PHP warning due to empty captions